Skip to content

C2.2 runtime(time): estimate compatible task p50 p95 and replan after terminal events #993

Open

Description

@EffortlessSteven

Parent

#862. Depends on #992 and TaskLedger timing. Roadmap: #945 C2.2.

Objective

Use conservative deterministic defaults plus compatible observed samples to estimate task duration and replan safely.

Scope

  • Define task-family identity separate from execution/cache identity.
  • Store p50/p95/sample count/source/confidence by repository, runner profile, toolchain, command family, and relevant mode.
  • Ignore stale/incompatible samples.
  • Recompute queue ordering/latest-safe-start after terminal events and estimate updates.
  • Preserve deterministic cold-start defaults.

Acceptance

Cold runs are conservative; compatible history changes estimates; incompatible profile/toolchain/mode samples are ignored; p95—not mean—controls safe-start; actual consumption controls remaining budget; estimates and decisions are explainable/replayable; learning can be disabled.

Proof

Cold/warm/stale/incompatible/outlier/sample-count fixtures, replan-after-fast/slow completion, deterministic fallback and full validation.

Non-goals

No learned test value/omission, Cargo cache domain, cross-repo fleet data, or model selection.

Rollback

Disable observed estimates and use versioned deterministic defaults.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions