Skip to content

2026-09-02 Factory worker image package

Added an isolated Factory worker package for histo preprocessing and viseg anatomy jobs.

Work Done

  • Added an isolated apps/factory/worker-image Python package on the Factory campaign prototype branch.
  • Copied the current histo preprocessing and viseg anatomy runner behavior without changing batching, identifiers, publication, or inference semantics.
  • Added JSON-file CLI payload handling with params and inputs, a Pixi CUDA environment and lock, and a container build.
  • Verified formatting, lint, type checking, lock generation, wheel creation, entrypoint metadata, and runner AST equivalence.

Lessons Learned: Pitfalls

  • The current runner code mixes execution behavior with extensive rationale. Moving it while following the repository zero-comment rule required a syntax-preserving copy rather than a direct file copy.
  • The worktree was shared with concurrent controller work. Scope checks were necessary to avoid treating sibling changes as part of this task.

Lessons Learned: Improvements

  • A documented Factory worker payload and image contract would make future controller and runner splits faster.
  • Record that worker payloads use top-level params and inputs, while case selection and job grouping remain controller responsibilities.
Navigation

Type to search…

↑↓ navigate↵ selectEsc close