Skip to content

Move knowledge and parallel-round entry points into Apps workflows - #646

Merged
zengchuang-hw merged 6 commits into
mainfrom
codex/635-knowledge-and-parallel-round
Nov 25, 2026
Merged

zengchuang-hw merged 6 commits into
mainfrom
codex/635-knowledge-and-parallel-round

Conversation

@zengchuang-hw

@zengchuang-hw zengchuang-hw commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Governing Issue and delivery slice

Refs #635

Move the knowledge reader and parallel-round composition into workflows. Route the CLI, script, Python example and tests through those implementations. The former modules explicitly re-export their public functions during migration. The migration inventory records consumers for both paths. This slice is independent of the evaluation implementation in #645.

Anchors touched: none

Current verification

Reviewed base 5d1dd287 (main), PR head db1c94ca67dd830674e82b47152a5f90dfa72b5b. The last commit updates four test paths in the migration inventory after the test layout changed. Ready CI passed all eight jobs, including full tests and installed-wheel checks for Python 3.10 and 3.11. On Windows, python -m pytest -q tests/apps/test_apps_module_migrations.py tests/apps/test_apps_knowledge.py passed all 43 cases. The inline finding is resolved. Formal re-review of this head is pending.

Earlier verification

  • Ruff passed across src, tests and tools. Five affected test modules passed on Linux (128 tests), including migration inventory, export identity, knowledge reads and parallel-round operations.
  • In a fresh interpreter, importing the canonical knowledge module loaded neither Harness nor Benchmark. The locally tested tree matches Git tree f2f3d1ccd3a0ef2bda8d37e8888207b44186fae6.
  • Full suite and checkout-external wheel acceptance were not run for this head locally. These checks preceded the current head.

Windows import regression

At 908ef515, the workflow imports the POSIX scheduler only when serve_ticket or close_round runs. Windows Python 3.12 passed all 43 cases in tests/test_apps_module_migrations.py and tests/test_apps_knowledge.py, and ruff check src tests tools passed. The tested tree is 9246a32df432e5ae59812d130229c04aba46d692. The 128 Linux cases above were run on the preceding head. Current-head Linux results are recorded by Ready CI.

After #645 merged, f9357410 reconciled the migration inventory with main 86060880. Ruff and the five affected Linux modules pass on the reconciled tree (128 tests).

Remaining work

Host and storage moves, versioned legacy path retirement and final main acceptance remain tracked in #635.

Knowledge authorship declaration for the earlier revision

{"schema_version":1,"head_sha":"f93574101f0772454cb91554aa0dcb4b77d2ab66","human_only":false,"material_ai_authors":[{"tool":"Codex","model_id":"GPT-6","effort":"unknown","role":"author"},{"tool":"Codex","model_id":"gpt-5.6-sol","effort":"unknown","role":"author"}]}

Agent-assisted-by: Codex / GPT-6 [effort=unknown] (author)
Signed-off-by: zengchuang-hw <215986001+zengchuang-hw@users.noreply.github.com>
@Dong1017 Dong1017 added kind:task Bounded delivery task with a delegated slice area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters labels Nov 24, 2026

zengchuang-hw commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Windows 导入回归已在 908ef515 修复,43 项迁移和知识读取回归通过。

复现及处理

在 Windows / Python 3.12 复验当前头 2e667be2,新增的登记使 tests/test_apps_module_migrations.py::test_shim_is_an_explicit_export_of_the_same_objects[inferrsi.apps.parallel_round] 在导入阶段失败。workflows.parallel_round 顶层导入 Harness 调度器,随后 device_lease 导入 POSIX 专用的 fcntl。仅把调度器导入移入实际执行的 serve_ticket 和 close_round,即可保留 POSIX 调度行为并让 Windows 能检查旧/新导出;这一改法已在 #635 的本地组合验证通过。

修复已落在本 PR。Windows / Python 3.12 下运行 python -m pytest -q tests/test_apps_module_migrations.py tests/test_apps_knowledge.py,43 项通过。ruff check src tests tools 通过。当前提交的 Ready CI。

Agent-assisted-by: Codex / GPT-6 [effort=unknown] (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com>

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PASS — reviewed 908ef515e8224069b2c34d0f8d58a2049d5abccd for #635. Knowledge reads and parallel-round composition move under workflows with explicit legacy exports. POSIX lease imports remain deferred until execution, so importing the CLI or public compatibility modules does not require POSIX. Checked affected consumers and all eight Ready jobs plus the required policy. This is not a claim that POSIX rounds execute on Windows; I did not rerun tests locally.

Copy link
Copy Markdown
Contributor Author

@amy-why-3459 @Dong1017 请对当前头 908ef515e8224069b2c34d0f8d58a2049d5abccd 做第二份独立检视。Ready CI 已通过,无开放检视线程;当前 main 为 d8cd8853364673d154c4925185718fbef31b96e0,PR 仍可合并。若通过,请在该精确头提交正式 Approve。

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Codex, acting for @amy-why-3459.

PR review verdict — PASS

独立审阅依据

对照 #635 的迁移范围,已审阅 base c159b9ca 到 head 908ef515 的改动。核对了旧导入路径与新 workflow 的显式导出、CLI 和脚本调用。知识读取仍使用只读 Store 和指定 revision;并行轮次在执行 serve_ticket 或 close_round 时才导入调度器,保留原有设备校验与评估回调。

已核实该提交的 Ready CI 通过。验证依据为源码差异、相关回归测试及托管 CI 结果。

@Bounty-hunter Bounty-hunter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

PR review verdict — PASS
Reviewed base c159b9cad8591a41b2bebd0cb7a7ec9ee21800e3 and head 908ef515e8224069b2c34d0f8d58a2049d5abccd for #635.

Evidence and limits
  • The moves are faithful. src/inferrsi/apps/workflows/knowledge.py is byte-identical to the former apps/knowledge.py. src/inferrsi/apps/workflows/parallel_round.py carries the same make_assess, serve_ticket and close_round bodies; the Harness scheduler import is now inside serve_ticket and close_round. That keeps the POSIX-only device_lease/fcntl import out of module import and fixes the Windows collection failure described in the body without changing POSIX execution.
  • Compatibility exports are explicit. apps/knowledge.py and apps/parallel_round.py are docstring-plus-import shims with __all__, so the old paths still return the canonical objects. The CLI, tools/parallel_round.py and the affected tests now import the canonical modules; the two qualify_devices monkeypatch sites moved with the implementation.
  • Inventory and paths. The two new docs/apps-module-migrations.json entries list the old and canonical modules, their exports and consumers; all listed paths exist at the head.
  • Merge with current main. Three paths overlap main since the base: docs/apps-module-migrations.json, docs/operations.md and src/inferrsi/apps/cli/__init__.py. A three-way merge was conflict-free; the merged CLI keeps main's newer SearchSpace and external-source code and adds only the two workflows.knowledge imports. All 11 check runs at the head, including both full-check lanes, installed-package on both Python versions, declarations and the advisory host lanes, are success (run 45433477904).
  • Limits. I did not run pytest or Windows locally. The base is older than current main; this verdict covers the exact head above, and the integrator still owns the merged-head check.

Preserve the evaluation migration inventory while retaining the knowledge and parallel-round entries.

Agent-assisted-by: Codex / gpt-5.6-sol [effort=unknown] (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com>

zengchuang-hw commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

#645 合入后产生的迁移清单冲突已在当前头 f93574101f0772454cb91554aa0dcb4b77d2ab66 解决。该头保留 main 的评测条目与本 PR 的知识/并行轮次条目;Ruff 与 128 项相关 Linux 测试通过。请按新精确头重新检视。

Bounty-hunter
Bounty-hunter previously approved these changes Nov 24, 2026

@Bounty-hunter Bounty-hunter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

PR review verdict — PASS
Reviewed base 8606088041e803d93ba8e27df4b2aed1884c3990 and head f93574101f0772454cb91554aa0dcb4b77d2ab66 for #635, as the re-review requested in the author's 19:50Z comment.

Evidence and limits
  • The reconcile changes only the overlap. Nine of the twelve changed files are byte-identical between 908ef515 and f935741: both shims, both workflows movers, the four affected tests and tools/parallel_round.py. The three files that differ are the ones current main also changed. In src/inferrsi/apps/cli/__init__.py:20-21 the PR still changes only the two knowledge imports; in docs/operations.md:374 only the store path changes. Nothing from #645 is dropped.
  • The inventory keeps main. docs/apps-module-migrations.json has 23 entries at the head: all 21 entries from main 86060880 are byte-for-byte unchanged, and the only additions are inferrsi.apps.knowledge → inferrsi.apps.workflows.knowledge and inferrsi.apps.parallel_round → inferrsi.apps.workflows.parallel_round. No duplicate old or canonical key is present, and every listed consumer path exists.
  • Earlier findings still hold. The Windows fix is unchanged: from inferrsi.harness import parallel_round as harness sits inside serve_ticket (src/inferrsi/apps/workflows/parallel_round.py:39) and close_round (:62), so importing the module does not load device_lease/fcntl. Both old paths remain docstring-plus-import shims with an explicit __all__, so pickle and object identity keep resolving to the canonical definitions.
  • Checks at this head. Ruff passed in both full-check lanes, and installed-package (3.10 and 3.11), lint-and-smoke, declarations, pr-references, dashboard-browser and both advisory host lanes are success. The two full-check test steps were still running when this review was written; that result is not claimed here. Ready run: https://github.com/InferMatrixLab/InferRSI/actions/runs/45474330135
  • Limits. I did not run pytest or Windows locally. I read the head files, the diff and the check runs, and this verdict covers only f935741 against 86060880. I made no change to this branch.

david6666666
david6666666 previously approved these changes Nov 24, 2026

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PASS — reviewed f93574101f0772454cb91554aa0dcb4b77d2ab66 against the PR base 8606088041e803d93ba8e27df4b2aed1884c3990 and checked the relevant changes since it.

Review evidence and limits

I checked the merge with #645, including the migration inventory, CLI canonical imports, public legacy exports and deferred POSIX-only execution imports. Saved CLI/Python entry points and the landed evaluation entries are retained.

Ready CI passed all eight jobs including both advisory hosts. The required knowledge policy is green. No merge or Issue acceptance is implied.

amy-why-3459
amy-why-3459 previously approved these changes Nov 24, 2026

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @amy-why-3459.

对照 86060880 核对了 12 个变更路径。合并后的迁移清单保留主线各条记录并新增两个 workflow 条目;旧模块显式保留导出,知识读取仍传递固定 revision 并默认以只读方式打开 Store,轮次调度只在调用 serve/close 时导入 Harness。核对了该提交的 Ready 八项 和知识作者政策均通过,未另跑测试。

Dong1017
Dong1017 previously approved these changes Nov 24, 2026

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

PR review verdict — PASS
Reviewed base 8606088041e803d93ba8e27df4b2aed1884c3990 and head f93574101f0772454cb91554aa0dcb4b77d2ab66 (12 changed paths, complete diff). Six formal Approves are seeded on this exact head from three logins (david6666666, amy-why-3459, Bounty-hunter, latest per login at 20:49Z/20:50Z), with no outstanding CHANGES_REQUESTED — so this is not the first independent look, and I re-checked the migration invariants myself rather than relying on those votes.

What I verified, and the limits

The moves are faithful. src/inferrsi/apps/workflows/knowledge.py is the former apps/knowledge.py body byte for byte. workflows/parallel_round.py keeps the make_assess, serve_ticket and close_round bodies; the only behavioral edit is that from inferrsi.harness import parallel_round as harness now sits inside serve_ticket and close_round, so importing the module no longer loads the Harness scheduler path that reaches device leases.

Both old paths satisfy the shim contract the repo enforces. apps/knowledge.py and apps/parallel_round.py are docstring + one relative ImportFrom + an __all__ literal, which is what tests/test_apps_module_migrations.py:24-79 requires: the import resolves to the declared canonical module, imported names equal exports, __all__ equals exports, module-level public names equal __all__ only, and __module__ plus protocol-0 pickle round-trips land on the canonical path.

Inventory is registered the way the switch test needs. Both new docs/apps-module-migrations.json entries use the established field shape (old/canonical/exports/consumers; no field the other 21 entries use is missing). Every listed consumer is unique and exists at the head, and each is exactly the file the consumer-switch check at tests/test_apps_module_migrations.py:165-188 demands: src/inferrsi/apps/cli/__init__.py, apps/knowledge.py plus three knowledge tests; apps/parallel_round.py, tests/test_parallel_round.py, tools/parallel_round.py.

Patch sites moved with the implementation. tests/test_parallel_round.py patches inferrsi.apps.workflows.parallel_round.qualify_devices. That still bites from inside serve_ticket, because the function reads the module global at call time, so the queued/measured assertions test the same device gate as before.

The runtime-identity consumer #635 flagged for these two modules is clean. src/inferrsi/harness/optimization_session.py:118-126 fingerprints apps/workflows/campaign.py and neither moved module; tools/skill_eval_compare.py:40-50 CONTROLLERS also omits both. So no digest path is left pointing at a shim — nothing to re-register in this slice. campaign was the case that needed the canonical file, and it is already canonical.

No knowledge-authorship exception is implied. None of the 12 paths appears in protected_paths or policy_paths (.github/knowledge-model-policy.json:4-21).

Docs are consistent, not stale. The Store-candidates example now names inferrsi.apps.workflows.knowledge.open_knowledge_store, and docs/module-layout.md:49-60 already describes the workflows migration generically, including canonical-source fingerprinting, with no root-module list to update.

Not verified here. I did not run the suite; the CI statement rests on the seeded Ready run 45474330135 cited by two current-head Approves, and that green lane is what makes the consumer-switch test decisive evidence that no active stale old-path importer remains. I did not execute a parallel round — the Windows change is import timing only, so POSIX round execution on Windows is still not claimed. workflows/parallel_round.py still imports apps.host.platforms.cuda and benchmark.legacy_run_v0 at module level exactly as the old root file did; unchanged, not a regression.

Non-blocking. Any out-of-repo code patching inferrsi.apps.parallel_round.qualify_devices or .harness must move to the canonical path, since the shims now expose only the three declared exports. That is consistent with #635 leaving shim removal to a versioned retirement PR.


@Dong1017

Copy link
Copy Markdown
Collaborator

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

请求的 908ef515 已被当前头取代,而当前精确头 f9357410 上本账号的正式 Approve 已经存在(6047440458),所以本轮不再重复投票:当前头 base 86060880、12 个变更路径,已有 david6666666、amy-why-3459、Bounty-hunter 与 @Dong1017 四个 login 的当前头 Approve,且无悬挂 CHANGES_REQUESTED。我按完整 diff 自行复核,结论仍为 PASS,无需再补同头重复 Approve;下一次 push 后再提可重审。

本轮复核的内容与边界
  • Windows 回归仍成立。 from inferrsi.harness import parallel_round as harness 只在 src/inferrsi/apps/workflows/parallel_round.py:39(serve_ticket)和 :62(close_round)内导入,因此导入模块不会经 src/inferrsi/harness/parallel_round.py:73 的 device_lease 走到 POSIX 专用的 fcntl。模块顶层只剩 stdlib、apps.host.platforms.cuda(顶层仅 csv/io/os/re/subprocess,cuda.py:3-7)、apps.legacy.evaluation 与 benchmark.legacy_run_v0,都是移动前既有导入;serve/close 的 POSIX 行为未变。

  • 两个旧路径满足仓库强制的 shim 契约。 均为 docstring + 单条相对 ImportFrom + 字面 __all__,导入名集合与顺序等于清单 exports,正是 tests/test_apps_module_migrations.py:34-54 要求的形状;__module__ 与 protocol-0 pickle 仍落在 canonical(同文件 :71-79)。apps/handoff/context_provider.py:9,33 直接接收 KnowledgeReader,不构成未登记的旧路径消费者。

  • 清单与 refactor(apps): move evaluation orchestration behind the public API #645 的合并没丢东西。 docs/apps-module-migrations.json:501-531 只在尾部追加 knowledge / parallel_round 两条,前 21 条未动,列出的 consumers 路径都存在;src/inferrsi/apps/cli/__init__.py:20-21 只改了两条 knowledge 导入,:30 的 external_channels.round_provider 等主线较新代码保留。

  • 未做: 未本地运行测试或 CI;Ready 结果引用的是复核记录里的 45474330135,不是本轮新跑。

Dong-bot(授权代理)。

Brings the branch up to date after #630 landed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Dong1017
Dong1017 dismissed stale reviews from david6666666, Bounty-hunter, and themself via 313c5e7 November 25, 2026 00:04
@Dong1017
Dong1017 enabled auto-merge (squash) November 25, 2026 00:04

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dot, acting for @amy-why-3459.

本次复审 313c5e7e,不批准。同步合入 #630 后,迁移清单新增的两条记录仍引用四个已搬走的测试路径。test_active_consumers_use_canonical_paths_and_are_registered 会逐项检查 consumers 文件是否存在,并验证实际导入者是否登记在对应条目。不改清单,两项检查都无法正确覆盖新路径。

请在 docs/apps-module-migrations.json 中将对应条目改为 tests/apps/test_apps_context_provider.py、tests/apps/test_apps_knowledge.py、tests/harness/test_harness_generation_seal.py 和 tests/harness/test_parallel_round.py,然后在新提交上重跑 tests/apps/test_apps_module_migrations.py 和 Ready CI。上述判断来自当前提交的清单、文件路径和测试断言;未本地运行测试。

Comment thread docs/apps-module-migrations.json Resolved

@Bounty-hunter Bounty-hunter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

PR review verdict — DO NOT PASS
Reviewed base 5d1dd2878e9e9d27fa8f1ea6bb69b70127c6962e and head 313c5e7e0ddd2377b9d99c216dca797fc46ddd65; this re-review covers the current head after the #630 test move, not a new review of the canonical implementations.

Blocker — the migration inventory still names four test files that this head no longer contains. The PR's claim that "the migration inventory records consumers for both paths" no longer holds after the #630 merge. In docs/apps-module-migrations.json, the inferrsi.apps.knowledge entry lists tests/test_apps_context_provider.py, tests/test_apps_knowledge.py and tests/test_harness_generation_seal.py; line 527 lists tests/test_parallel_round.py under inferrsi.apps.parallel_round. All four paths are absent at 313c5e7e; the files are now at tests/apps/test_apps_context_provider.py, tests/apps/test_apps_knowledge.py, tests/harness/test_harness_generation_seal.py and tests/harness/test_parallel_round.py, and each imports the canonical inferrsi.apps.workflows.* module. tests/apps/test_apps_module_migrations.py:174 asserts every consumer is an existing file, and :188 requires each importer to be registered under its target. Both checks fail on the stale strings.

Evidence. full-check (3.11) failed at 00:18Z in run 45515173716, job 138872638439 at tests/apps/test_apps_module_migrations.py:174 with assert all((REPO / path).is_file() for path in entry["consumers"]). full-check (3.10) was still in progress when checked.

Required correction. Replace the four paths in the two entries, then rerun tests/apps/test_apps_module_migrations.py and Ready CI on the new head.

What was checked and what remains unverified

Checked the current head and base, the 12-file PR delta, both new migration entries, the four moved test files and their imports, the consumer test body, and the full-check (3.11) failure. I did not run the suite locally, did not see full-check (3.10) complete, and did not re-review the canonical implementations beyond their consumer paths. The four path edits are the only blocker I am raising in this round.

Agent-assisted-by: Codex / GPT-6 [effort=unknown] (author)
Signed-off-by: zengchuang-hw <215986001+zengchuang-hw@users.noreply.github.com>

zengchuang-hw commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

@Bounty-hunter @amy-why-3459,请复核当前提交 db1c94ca。你们指出的四处路径已修正,此前失败的 Python 3.10 和 3.11 全量检查均已通过。若问题已解决,请在该提交上提交正式 Approve。

复验记录

Windows 本地运行 python -m pytest -q tests/apps/test_apps_module_migrations.py tests/apps/test_apps_knowledge.py,43 项全部通过。四行路径修复 · Ready CI 的八项作业

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Codex, acting for @amy-why-3459.

PR review verdict — PASS

已复核 5d1dd287 → db1c94ca 的 12 个变更文件。迁移清单的四个测试路径已逐一对应到实际导入 workflow 的文件:context provider 和 knowledge 测试位于 tests/apps/,generation seal 和 parallel round 测试位于 tests/harness/。此前导致迁移登记检查失败的问题已修复。两个 workflow 实现及旧路径导出与此前审过的版本一致。

当前提交的 Python 3.10、3.11 全量检查均已恢复通过,Ready CI 八项检查全部成功。

@zengchuang-hw

Copy link
Copy Markdown
Contributor Author

@Dong1017 PTAL

@Bounty-hunter Bounty-hunter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

PR review verdict — PASS
Reviewed base 5d1dd2878e9e9d27fa8f1ea6bb69b70127c6962e and head db1c94ca67dd830674e82b47152a5f90dfa72b5b; this re-review covers the four consumer-path findings raised on 313c5e7e and the fix commit db1c94ca.

Evidence and limits
  • The four stale paths are corrected. db1c94ca changes only four strings in docs/apps-module-migrations.json: the knowledge entry now lists tests/apps/test_apps_context_provider.py, tests/apps/test_apps_knowledge.py and tests/harness/test_harness_generation_seal.py; the parallel-round entry lists tests/harness/test_parallel_round.py. Each file exists at the head and imports inferrsi.apps.workflows.knowledge or inferrsi.apps.workflows.parallel_round directly.
  • The inventory is consistent at the head. All 114 consumers paths across the 23 entries exist at db1c94ca; no tests/test_* consumer strings remain, and no entry has a duplicate consumer. The two new canonical modules exist at their declared paths.
  • The tests' two assertions now cover the corrected names. tests/apps/test_apps_module_migrations.py:174 requires every consumer path to be an existing file, and :188 requires every direct importer of a canonical module to be listed for that target. The corrected paths satisfy both; the failure on 313c5e7e is resolved.
  • Checks. All ten check runs on db1c94ca are green, including full-check (3.10), full-check (3.11), both installed-package jobs, both advisory host-compatibility jobs, declarations, pr-references, lint-and-smoke and dashboard-browser. I did not rerun tests locally; the Python 3.10/3.11 full results are CI evidence.
  • Unchanged prior findings. The fix commit touches only the inventory file, so the earlier verified points (byte-identical moved implementations, explicit shims, deferred POSIX scheduler import) are unaffected.
  • Limits. The PR base is two commits behind current main (3dfe489a); GitHub reports the PR mergeable at this head, but I did not independently rebuild that merge. No merge or Issue acceptance is implied here.

@zengchuang-hw
zengchuang-hw merged commit 2859d30 into main Nov 25, 2026
12 checks passed

Copy link
Copy Markdown
Contributor Author

Codex,代表 @zengchuang-hw。

已将经 Bounty-hunter 和 amy-why-3459 独立批准的 db1c94ca squash 合入 main,合并提交为 2859d306。合入前 Ready CI 通过,阻塞性检视已清除。合入后的 merge lane 和 knowledge declaration policy 均已通过。

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

PR review verdict — PASS
Reviewed base 5d1dd2878e9e9d27fa8f1ea6bb69b70127c6962e and head db1c94ca67dd830674e82b47152a5f90dfa72b5b (12 changed paths, complete diff). This answers the 02:02:49Z PTAL on #635's Apps workflow slice. The earlier blocker is resolved and I found no new one.

Earlier finding — resolved. The 313c5e7e DO NOT PASS (four consumer paths still naming pre-#630 test locations) is fixed in db1c94ca: docs/apps-module-migrations.json now lists tests/apps/test_apps_context_provider.py, tests/apps/test_apps_knowledge.py and tests/harness/test_harness_generation_seal.py under the inferrsi.apps.knowledge entry, and tests/harness/test_parallel_round.py under inferrsi.apps.parallel_round. All four exist at the head and import the canonical inferrsi.apps.workflows.* module directly.

What I verified, and the limits

The move is faithful and the shims satisfy the repo contract. Both old paths are now docstring + one relative ImportFrom + a literal __all__. Checked against tests/apps/test_apps_module_migrations.py:

  • :49 — imported name set equals exports (order-insensitive; the parallel_round shim imports close_round, make_assess, serve_ticket).
  • :54 — __all__ literal equals exports in order (["make_assess", "serve_ticket", "close_round"], ["knowledge_reader", "open_knowledge_store", "read"]).
  • :61 — module public names equal __all__ only; neither shim leaves a stray stdlib or helper name behind.
  • :71-79 — getattr(old, name) is getattr(canonical, name), __module__ == canonical, and the protocol-0 pickle round-trip lands on the canonical object.
  • :174 / :186-188 — every listed consumer is an existing file, and no src/tests/tools/plugins module imports an old name or reaches a canonical module unregistered. src/inferrsi/apps/workflows/__init__.py is docstring-only, so the new modules add no unregistered importer, and I found no canonical importer outside the listed consumers.

src/inferrsi/apps/workflows/knowledge.py carries the deleted apps/knowledge.py body unchanged. workflows/parallel_round.py keeps the make_assess, serve_ticket and close_round bodies; the only behavioral edit is that from inferrsi.harness import parallel_round as harness moved inside serve_ticket and close_round, which keeps the POSIX-only device_lease/fcntl path out of module import while leaving POSIX execution identical. The qualify_devices monkeypatch sites in tests/harness/test_parallel_round.py:1128 and :1137 now target inferrsi.apps.workflows.parallel_round, the module whose globals serve_ticket actually reads — consistent with the move. tools/parallel_round.py and docs/operations.md point at the canonical paths.

Weighed formal state. @amy-why-3459 APPROVED and @Bounty-hunter APPROVED, both on this exact head (02:00Z / 02:05Z), with no outstanding CHANGES_REQUESTED in the latest per-login set; the 313c5e7e request changes is superseded. I re-checked the invariants above myself rather than relying on those votes.

Not verified here. I did not run pytest or any CI this turn; the green Ready run 45524823618 (eight jobs) and the Windows 43-case run are the author's reported results, not mine. The knowledge-model-policy block in the body pins f9357410, not this head — the delta to db1c94ca is four inventory strings with no knowledge content, and the post-merge knowledge-declaration-policy run is reported green, but I did not re-derive that checker.

Recorded after merge. The thread shows this head squash-merged as 2859d306 at 02:09Z, seven minutes after the PTAL. So this Approve is the review record for db1c94ca, not a merge gate. Host/storage moves, legacy path retirement and final main acceptance remain with #635 and are out of this slice.

Dong-bot (authorized delegate).


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants