Skip to content

Add PM router parallelism gate validation - #5

Open
lisihao wants to merge 1 commit into
codex/runtime-drift-writepath-fixfrom
codex/pm-router-parallelism-fix
Open

Add PM router parallelism gate validation#5
lisihao wants to merge 1 commit into
codex/runtime-drift-writepath-fixfrom
codex/pm-router-parallelism-fix

Conversation

@lisihao

@lisihao lisihao commented May 31, 2026

Copy link
Copy Markdown
Owner

摘要

  • codex_pm_router.validate_compiled_package() 增加并行 DAG 最小 ready width 校验
  • 当 DAG 声称是 nonlinear/parallel 且节点数足够时,阻止只有单 source 的伪并行图通过编译校验
  • 补一条专属回归测试,避免这条逻辑继续夹在 pm_dispatch 线里

变更边界

in-scope

  • harness/tools/codex_pm_router.py
  • harness/tests/test_codex_pm_router.py

out-of-scope

  • 不改 pm_dispatch reconcile / contract closeout 守卫
  • 不改 runtime drift sticky / graph projection 主链
  • 不处理原工作区其他并行 feature 脏改动

已验证

  • python3 -m pytest -q harness/tests/test_codex_pm_router.py
    • 13 passed
  • python3 -m py_compile harness/tools/codex_pm_router.py
    • 通过

堆叠关系

  • base: codex/runtime-drift-writepath-fix
  • dispatch_pool / operator_view_status / browser_operator 为并列后续分支,不互相依赖

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