[阶段6] 清理 + CLAUDE.md 文档 #25

Closed
opened 2026-08-21 13:31:30 +08:00 by tao.chen · 0 comments
Owner

收尾阶段。

  • 删除老的扁平文件:context.py / execution.py / executor.py / notebook_runner.py(老) / orchestrator.py(老) / scheduler.py(老) / service.py(老) / storage_client.py(老) / worker.py(老)。注意:阶段 4 加的 notebook_runner.py shim 保留
  • find schedule/src -name __pycache__ -exec rm -rf {} +
  • uv sync 重新解析依赖
  • 每个新子包写 __init__.py,只 re-export public symbols(CronScheduler / DispatchOrchestrator / SchedulerService / Worker / SchedulerStorageClient / TERMINAL_NODE_STATES / ExecutionResult 等)
  • CLAUDE.md 的 "Engineering notes" 新增 schedule 分层段落(模仿 Runtime reconciliation 段落的写法,作为一条 hard-won lesson):说明 schedule 现在是 domain / scheduling / application / execution / infrastructure 五层、搬包零行为变化、阶段 4 notebook_runner shim 兼容的原因

Executor: Codex

验证:

  • ls schedule/src/schedule/ 只剩 main.py + 5 个新子包 + 兼容 shim
  • uv run --package schedule pytest schedule/tests -q 全绿
  • uv run python -m compileall schedule/src 零错误
  • python -m schedule.notebook_runner --help 仍能跑
  • CLAUDE.md 已更新

约束: schedule/pyproject.toml 不改


Task: xt903mmqlwwa8q3xidqbq4uc

<p>收尾阶段。</p> <ul> <li>删除老的扁平文件:<code>context.py</code> / <code>execution.py</code> / <code>executor.py</code> / <code>notebook_runner.py</code>(老) / <code>orchestrator.py</code>(老) / <code>scheduler.py</code>(老) / <code>service.py</code>(老) / <code>storage_client.py</code>(老) / <code>worker.py</code>(老)。注意:阶段 4 加的 <code>notebook_runner.py</code> shim <strong>保留</strong></li> <li><code>find schedule/src -name __pycache__ -exec rm -rf {} +</code></li> <li><code>uv sync</code> 重新解析依赖</li> <li>每个新子包写 <code>__init__.py</code>,只 re-export public symbols(<code>CronScheduler</code> / <code>DispatchOrchestrator</code> / <code>SchedulerService</code> / <code>Worker</code> / <code>SchedulerStorageClient</code> / <code>TERMINAL_NODE_STATES</code> / <code>ExecutionResult</code> 等)</li> <li>根 <code>CLAUDE.md</code> 的 "Engineering notes" 新增 schedule 分层段落(模仿 <code>Runtime reconciliation</code> 段落的写法,作为一条 hard-won lesson):说明 schedule 现在是 domain / scheduling / application / execution / infrastructure 五层、搬包零行为变化、阶段 4 notebook_runner shim 兼容的原因</li> </ul> <p><strong>Executor:</strong> Codex</p> <p><strong>验证:</strong></p> <ul> <li><code>ls schedule/src/schedule/</code> 只剩 <code>main.py</code> + 5 个新子包 + 兼容 shim</li> <li><code>uv run --package schedule pytest schedule/tests -q</code> 全绿</li> <li><code>uv run python -m compileall schedule/src</code> 零错误</li> <li><code>python -m schedule.notebook_runner --help</code> 仍能跑</li> <li>根 <code>CLAUDE.md</code> 已更新</li> </ul> <p><strong>约束:</strong> <code>schedule/pyproject.toml</code> <strong>不改</strong>。</p> --- <sub>Task: xt903mmqlwwa8q3xidqbq4uc</sub>
tao.chen added the priority:mediumstatus:to-do labels 2026-08-21 13:31:32 +08:00
tao.chen added status:in-progress and removed status:to-do labels 2026-08-21 14:43:55 +08:00
tao.chen added status:done and removed status:in-progress labels 2026-08-21 14:47:50 +08:00
tao.chen added status:archived and removed status:done labels 2026-08-24 10:09:10 +08:00
tao.chen reopened this issue 2026-08-24 10:09:17 +08:00
tao.chen added status:in-review and removed status:archived labels 2026-08-24 14:21:33 +08:00
tao.chen added status:archived and removed status:in-review labels 2026-08-24 14:25:27 +08:00
tao.chen reopened this issue 2026-08-24 14:25:37 +08:00
tao.chen added the status:to-do label 2026-08-24 14:26:11 +08:00
tao.chen added status:done and removed status:to-do labels 2026-08-24 14:50:11 +08:00
Sign in to join this conversation.