Skip to content

Rewrite registration functions + migrate all task registrations #5

@Michael628

Description

@Michael628

Target branch: feature/issue-1-registry-refactor (based off develop)
All PRs for this work should target this branch, not main.

Parent PRD

#1

What to build

Rewrite register_task to split registration across both registries: domain functions go to the HandlerRegistry, build hooks (preprocess, postprocess, validate) go to the BuildHooksRegistry. Update all register_task(...) call sites across the codebase to use the new API with explicit string keys. Remove key: ClassVar[str] from all config dataclasses.

Acceptance criteria

  • register_task(key, config_type, ...) writes domain functions to HandlerRegistry and build hooks to BuildHooksRegistry
  • All existing register_task call sites migrated (hadrons, milc, contract, grid)
  • key: ClassVar[str] removed from all config dataclasses
  • All existing tests continue to pass
  • No regressions in task registration or lookup

Blocked by

User stories addressed

  • User story 1
  • User story 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions