Skip to content

refactor: reorganize src/unilab by owner layer - #342

Merged
TATP-233 merged 9 commits into
mainfrom
split-utils-ownership
Apr 25, 2026
Merged

TATP-233 merged 9 commits into
mainfrom
split-utils-ownership

Conversation

@TATP-233

Copy link
Copy Markdown
Collaborator

Summary

Structural cleanup of src/unilab/ so each package sits at its owner layer. Every commit targets one dependency arrow or misplaced module; together they remove the cross-layer back-edges that had accumulated.

  • f83e8c9 / 8df738b — split shared utils/ into owner packages and drop the re-export shims
  • e4a07f1 — centralize rsl-rl training helpers
  • 57bfc25 — move the shared buffer base out of algos into ipc (unblocks the ipc → algos back-edge)
  • aadc3f4 — lift dtype_config to top-level; dr/ no longer depends on base/
  • 79a28c8 — promote rich training loggers to a peer unilab.logging package; algos/ no longer imports from training/
  • 303b34d — stop re-exporting render_play_mode from training/; scripts import directly from unilab.visualization
  • 02eddfd — retire unilab.config: structured_configs → top-level, reward → training/reward.py, delete unused KNOWN_TASKS stubs

Net effect: grep -rn "from unilab.base.dtype_config\|from unilab.training.logging\|from unilab.config" src/ scripts/ tests/ is empty; algos/ no longer imports from training/; base/ and dr/ are independent.

Test plan

  • `make test` green (515 passed, 3 skipped on last local run)
  • Smoke: short PPO run on a G1 task
  • Smoke: short offpolicy (SAC) run on a G1 task
  • `grep -rn "unilab\\.config\\|unilab\\.training\\.logging\\|unilab\\.base\\.dtype_config" src/ scripts/ tests/` returns empty

structured_configs promoted to top-level unilab.structured_configs;
reward helpers folded into unilab.training.reward. The two *_params
modules held only unused KNOWN_TASKS stubs and are deleted.
Eliminates the config/ vs conf/ naming collision at the source.
benchmark/ wasn't covered by the earlier refactor commits, so two
scripts still pointed at unilab.config.structured_configs and
unilab.base.dtype_config. Ruff flagged the resulting import blocks
as unsorted because the phantom paths confused isort grouping.

Also silence a pre-existing mypy no-redef on the try/except import
fallback so the pre-commit hook passes.
@TATP-233
TATP-233 force-pushed the split-utils-ownership branch from 9f691a4 to b0a1473 Compare April 24, 2026 17:31
@TATP-233
TATP-233 merged commit 5a75fbf into main Apr 25, 2026
10 checks passed
@TATP-233
TATP-233 deleted the split-utils-ownership branch April 25, 2026 08:00
TATP-233 added a commit that referenced this pull request May 4, 2026
refactor: reorganize src/unilab by owner layer
TATP-233 added a commit that referenced this pull request May 30, 2026
refactor: reorganize src/unilab by owner layer
TATP-233 added a commit that referenced this pull request Sep 4, 2026
refactor: reorganize src/unilab by owner layer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant