Skip to content

[T-062] [V1-optional] S-CEM cross-entropy rare-event strategy (plugin) #124

Closed

Description

@CodewithJha

Task T-062 · Milestone M5 — Intelligent selection · Size S · Priority P3 · Epic #5

Implements FR-SEL-009 · PR-21

Branch feat/t-062-v1-optional-s-cem-cross — one task = one branch = one PR (doc 32 §6)

Summary

Implement S-CEM (doc 07 §8): truncated-Gaussian mixture proposal; each round sample 20, keep elite 20 % lowest ρ, refit — as an external-style plugin to demonstrate the plugin API.

Context / motivation

Standard rare-event baseline from the AV falsification literature; optional comparison in EXP-01.

Scope

In scope

  • selection/cem.py (or a separate package roboprobe_strategy_cem to prove extensibility).
  • Params: round size, elite fraction, mixture components (settings keys).

Implementation guidance

  • Prefer a separate in-repo package under plugins/roboprobe_strategy_cem/ registered via entry point to exercise NFR-EXT-001.
  • 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.

Acceptance criteria

  • Passes strategy contract suite without core changes.
  • 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

  • Contract + small benchmark smoke.

Dependencies

Blocked by: #100 (T-050b)

Blocks: no other task (leaf)

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:

  • plugins/roboprobe_strategy_cem/**

Independent.

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-062 (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 §8 · doc 10 §10 · ADR-0016

Requirements: FR-SEL-009 · PR-21 (traceability: doc 28)

External:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:selectionScenario selection strategies (BO, LSE, PROBE, baselines)help wantedExtra attention is neededmilestone:M5M5 — Intelligent selectionpriority:P3Nice to havesize:S<= 1 daytaskChild task of a milestone epictype:featureNew functionality

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions