Skip to content

integration(ci-efficiency): prove one model-off scheduler reduces Rust CI work without weakening Required evidence #1275

Open

Description

@EffortlessSteven

Parent

#1268 — model-off CI-efficiency programme.

Dependencies

A bounded pilot may start earlier in observation-only mode, but the final acceptance run uses the complete dependencies above.

Objective

Demonstrate that UB Review can replace redundant Linux Rust CI execution in substance before any existing job or branch-protection rule is changed.

The comparison must use the same exact revisions, Required obligations and outcome semantics. It is not enough for UB Review to finish green or to run fewer commands; it must reach the same or stronger trustworthy deterministic decision with materially less runner work.

Pilot population

Use at least 20 representative exact PR revisions across:

  1. EffortlessMetrics/ub-review;
  2. one materially different Rust repository with an existing meaningful CI matrix, selected and recorded before execution. perl-lsp-swarm or ripr-swarm are suitable candidates if their current owners/workflows permit a contained advisory model-off run.

Require at least 10 valid paired exact revisions per repository. Record the selected revisions before running the candidate comparison; do not choose only successful examples afterward. Fewer than 10 valid pairs in either repository cannot earn go.

Include at minimum:

Comparison boundary

For each exact revision run both:

A. existing required/advisory CI as currently configured
B. UB Review model-off deterministic candidate in shadow/advisory mode

Preserve existing CI as merge authority. Both sides must identify:

  • applicable Required obligations;
  • actual physical command/process executions;
  • results and infrastructure failures;
  • runner/job time and billing basis where available;
  • Cargo/cache/toolchain/target-root state;
  • terminal deterministic decision timestamp;
  • packet/artifact sizes;
  • final pass/fail/not_proven semantics.

No model call is required. Provider state must not affect the comparison.

Hard authority bar

Across the complete selected corpus:

Required evidence missing under PASS             0
stale receipt satisfying current revision        0
unknown or unledgered physical execution         0
duplicate canonical execution                    0
Required starvation                              0
false code failure caused by infrastructure      0
nonterminal admitted task at finalization        0
incorrect cross-mode or red/green satisfaction   0
silent packet-budget loss                        0

A single unexplained violation fails the pilot. Infrastructure-unavailable cases may be NOT_PROVEN; they may not be mislabeled code FAIL or PASS.

Economic bar

Runner work

Require at least 25% median reduction in Linux-equivalent runner minutes over the selected candidate-replaceable workload. Compute and report the median for each repository separately and for the combined corpus. A combined improvement cannot hide a repository regression; any repository that does not improve must be reported separately and prevents an unqualified cross-repository go.

p95 deterministic decision time

Evaluate p95 separately for each repository over its preselected paired revisions:

  • baseline = existing-CI time from comparable run start/admission to its deterministic decision timestamp;
  • candidate = UB Review time over the same exact revision and declared comparison boundary;
  • p95 method = nearest-rank p95 over the valid paired observations;
  • required sample = at least 10 valid paired observations with known start and deterministic-decision timestamps per repository;
  • allowed candidate p95 =
    baseline p95 + min(120 seconds, max(30 seconds, 10% of baseline p95)).

The candidate passes the latency bar only when each repository is within that tolerance. Fewer than 10 valid pairs, incomparable timing boundaries or an unknown deterministic-decision timestamp yields mixed_requires_more_evidence, not pass. Do not pool repositories to conceal a failure.

Required reporting

Also report:

  • exact number and duration of duplicate physical executions avoided;
  • cold/warm Cargo compile and marginal task time;
  • current-revision receipt reuse events;
  • process/queue/resource/setup/cleanup breakdown where available;
  • artifact compressed and expanded bytes;
  • bounded packet compliance rate;
  • existing CI versus candidate decision disagreements;
  • sample sizes, unknowns, runner rounding and repository-specific limits.

A mixed economic result remains mixed; do not average away a regression on one repository.

Required negative controls

  • Missing Required receipt while legacy/candidate compatibility field says pass.
  • Stale and wrong-revision receipt.
  • Exact command collision with different features, target, root or environment.
  • HEAD-pass incorrectly satisfying base-plus-tests.
  • Optional broad task attempting to starve Required work.
  • Full timeout charged as actual duration.
  • Concurrent Cargo writers in one target domain.
  • Process hang, cancellation, setup failure and receipt-write failure.
  • Required structured evidence lost by raw-stream truncation.
  • Packet over budget before upload.
  • Current head replaced while an older run finishes.

Each must fail or terminalize at the exact intended boundary with stable reasons.

Outputs

Commit or durably retain:

  • preselected-corpus manifest;
  • exact A/B run and artifact references;
  • per-revision obligation/task/receipt/outcome comparison;
  • command-execution and Cargo/cache comparison;
  • per-repository and combined runner-time/latency report;
  • packet-size report;
  • disagreement ledger;
  • authority invariant results;
  • explicit go | no_go | mixed_requires_more_evidence decision;
  • bounded recommended job-retirement candidates, if earned, with rollback.

The output should be rebuildable from #1270 plus canonical current-run ledgers. Manual classifications remain explicit and source-linked.

Acceptance

  • The selected corpus, comparison boundaries and thresholds were fixed before candidate results were known.
  • At least 10 valid paired exact revisions with known timing boundaries exist per repository; otherwise the result is mixed/insufficient.
  • Every existing Required obligation is represented or explicitly out of scope; none disappears through mapping.
  • UB Review produces one truthful deterministic result per exact revision.
  • Every physical execution has one TaskLedger lifecycle and terminal disposition.
  • Equivalent work executes once; distinct work remains distinct.
  • Required work starts before optional work can consume its capacity.
  • Actual duration and Cargo reuse explain the measured savings.
  • Packet size remains within the declared budget on every candidate run.
  • All hard authority bars pass.
  • Median runner work improves by the declared threshold and every repository satisfies the exact p95 rule, or the result explicitly remains no-go/mixed.
  • Existing CI remains authoritative throughout the pilot.
  • One independent review verifies the selected corpus, joins, calculations and go/no-go conclusion.

Non-goals

  • No model reviewer quality claim.
  • No adaptive history, learned omission, provider portfolio or heavy-witness requirement.
  • No automatic workflow edit, required-check removal, branch-protection mutation or sole-gate promotion.
  • No universal 25% fleet claim from two repositories.
  • No retroactive normalization of disagreements.

Completion

Close only when the retained comparison shows whether the model-off deterministic runner is materially cheaper at the same or stronger Required-evidence authority. Green workflows without command-level and outcome reconciliation do not count.

If the result is go, #1276 owns the reversible job-retirement transaction and #1015 owns truthful deterministic enforcement. If no-go or mixed, open only the concrete failed invariant/economic children revealed by the corpus.

Rollback

Disable the candidate advisory workflow. Existing CI remains unchanged and every comparison artifact is retained.

Activity

  1. added
    epic
    on Aug 30, 2026
  2. EffortlessSteven commented on Aug 30, 2026

    @EffortlessSteven
    MemberAuthor

    Pilot dependency and acceptance-governance amendment

    Add #1288 as a hosted-pilot prerequisite. The paired corpus must exercise one-active-plus-newest-pending behavior on repair pushes; active work is not cancelled by default, displaced pending heads are terminally superseded, stale active completion cannot publish current authority, and the newest head reaches terminal state.

    Freeze the selected repositories, exact revision sample, workload mapping, measurement boundaries, and acceptance thresholds before candidate results are inspected. A threshold change after unblinding cannot retroactively turn the same corpus into go; preserve the original result and require either:

    1. a new predeclared criterion justified independently before a new corpus is run; or
    2. an explicit mixed_requires_more_evidence / no_go result with a bounded follow-up seam.

    Minimum strata across the selected exact revisions should include, where each repository supplies them: Rust source, test-only, multi-package/target, workflow/policy, docs/meta fast-path, deterministic failure, infrastructure-unavailable, cold Cargo, warm same-run Cargo, and at least one rapid multi-push sequence. Missing strata remain explicit limitations rather than silently representative coverage.

    Runner-minute, p95 decision-latency, terminal-state, artifact-size, and authority results remain per repository before any combined view. A combined median or pooled p95 cannot conceal one repository's failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions