Skip to content

[T-057] S-BO strategy (warm-up + qLogNEI) with branin gate #115

Closed

Description

@CodewithJha

Task T-057 · Milestone M5 — Intelligent selection · Size S · Priority P0 · Epic #5

Implements FR-SEL-002

Branch feat/t-057-s-bo-strategy-warm-up — one task = one branch = one PR (doc 32 §6)

Summary

Implement BOStrategy (S-BO, selection/bo.py): Sobol warm-up n0 then qLogNEI for the whole budget; GP fit failure → Sobol fallback + selector.fallback.

Context / motivation

Ablation answering 'is plain BO enough?' (EXP-03) and the simplest learning strategy.

Scope

In scope

  • Entry point S-BO; params model; rationale (acquisition_value, μ, σ, phase=falsify).

Implementation guidance

  • Share warm-up logic with S-PROBE via a helper in selection/warmup.py.
  • Standards: respect the layering contracts (doc 16 §2) and conventions in doc 34; no hard-coded tunables — thresholds/defaults come from typed settings (doc 27); no magic numbers (ruff PLR2004); public APIs typed (mypy strict) and documented.

Configuration keys

From the configuration reference (doc 27). Keys marked (new) must be added to the typed settings models and appear in the generated reference (T-003c).

  • selection.probe.n0_fraction
  • selection.probe.n0_min_factor

Acceptance criteria

  • Benchmark gate: median first failure ≤ 25 on branin_falsify over 20 seeds (thresholds from tests/benchmark/thresholds.yaml).
  • Contract suite passes.
  • Tests listed below added and green in CI; coverage of new code meets the gate in doc 18 §3.
  • Docs, config reference and CHANGELOG Unreleased updated where behaviour, keys or interfaces changed.
  • Definition of Done (doc 32 §3) satisfied.

Tests required

  • tests/benchmark/test_bo_branin.py, contract.

Dependencies

Blocked by: #114 (T-056c), #103 (T-052)

Blocks: #122 (T-061)

Parallelization notes

Files / paths owned by this task — avoid editing other paths; shared files (pyproject.toml entry points, cli/main.py, api/routers/__init__.py, router.tsx, docker/compose.yaml, ci.yml) are append-only:

  • backend/src/roboprobe/selection/bo.py
  • backend/src/roboprobe/selection/warmup.py

Parallel with T-058.

Definition of Done

Per doc 32 §3 and AGENTS.md §5: lint, format, mypy strict and import-linter green; tests added and passing; docs updated; PR template completed with Closes #<this issue>; Conventional Commit messages referencing T-057 (doc 16 §6); commits authored only by the repository owner identity (AGENTS.md §4); CI green; reviewer checklist (doc 32 §5.1) satisfied.

References

Design docs: doc 07 §7 · doc 07 §5.1 · doc 18 §4.4 · doc 02 §3.2

Requirements: FR-SEL-002 (traceability: doc 28)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:selectionScenario selection strategies (BO, LSE, PROBE, baselines)milestone:M5M5 — Intelligent selectionpriority:P0Critical path / blocks otherssize:S<= 1 daytaskChild task of a milestone epictype:featureNew functionality

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions