Skip to content

[T-016] SUT profiles: model, loader, configs/sut_profiles/ (k2d default + TB4 Nav2 default) #42

Closed

Description

@CodewithJha

Task T-016 · Milestone M2 — Scenario + kinematic2d · Size S · Priority P1 · Epic #2

Implements PR-17 · FR-RSK-005

Branch feat/t-016-sut-profiles-model-loader-k2d — one task = one branch = one PR (doc 32 §6)

Summary

Implement loading/hashing of robot-stack profiles (SutProfile): k2d controller gains and Nav2 parameter sets incl. speed_param_paths (doc 10 §4).

Context / motivation

Comparing robot configurations (UC-10, EXP-05) requires profiles to be first-class, versioned by config_hash and snapshotted into campaigns.

Scope

In scope

  • scenario/sut_profile.py: load_sut_profile(path) -> SutProfile, config_hash = sha256 of canonical JSON.
  • schemas/sut_profile.schema.json.
  • configs/sut_profiles/k2d_default.yaml (references configs/backends/kinematic2d_v1.yaml gains) and configs/sut_profiles/tb4_nav2_default.yaml (base Nav2 params path + speed_param_paths; values verified in T-091).

Implementation guidance

  • Profiles are domain configuration (doc 27 §1) — never env-driven.
  • 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

  • Profiles validate; hash stable.
  • Unknown backend → error.
  • 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/unit/scenario/test_sut_profile.py.

Dependencies

Blocked by: #15 (T-002a), #32 (T-020a)

Blocks: #146 (T-081a), #201 (T-096a)

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/scenario/sut_profile.py
  • schemas/sut_profile.schema.json
  • configs/sut_profiles/*.yaml

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-016 (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 10 §4 · doc 11 §3 · doc 03 §UC-10 · doc 27 §1

Requirements: PR-17 · FR-RSK-005 (traceability: doc 28)

Activity

  1. added
    area:configTyped settings / configuration
    area:scenarioScenario space, sampling, scenario files
    priority:P1Required for milestone exit
    milestone:M2M2 — Scenario + kinematic2d
    taskChild task of a milestone epic
    on Nov 19, 2026
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

    area:configTyped settings / configurationarea:scenarioScenario space, sampling, scenario filesmilestone:M2M2 — Scenario + kinematic2dpriority:P1Required for milestone exitsize:S<= 1 daytaskChild task of a milestone epictype:featureNew functionality

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions