Repository navigation
refactor(apps): group application workflows in a workflows package - #517
Conversation
Signed-off-by: zengchuang <zengchuang3@huawei.com> Agent-assisted-by: Codex (author)
Skill evaluationPLANNED: not executed; there are no task outcomes yet.
Author verification steps (nonpaid; not yet run)
Evidence and logs · Retention: 30 days. Plan bindings, budget, frozen exam and advisory detailsAdvisory: obtain missing evidenceRetained evidence availability: planned / unexecuted. No approval or merge authorization is issued.
Model/settings:
Automatic execution / cumulative PR budget: {"reason":"Trusted configuration or pricing missing, invalid or expired","remaining_usd":"unknown","reserved_or_unresolved_usd":"unknown","spent_or_legacy_usd":"unknown","state":"blocked"}Provider/settings: Uncovered / unsupported paths (62)
|
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base 8dcf5ad and head 8d414dd (full diff, first review). prior-reviews.md has no formal reviews on this head and no outstanding CHANGES_REQUESTED. This is Dong-bot (authorized delegate) acting as one independent review vote, not a substitute for other required approvals.
Verified by reading the diff:
- Moves are byte-identical. The five implementations (
campaign,benchmark_operations,improvement,skill_evaluation,skill_eval_engineering) go toapps/workflows/with the same blob hashes as the old files, so signatures, return values and record schemas are unchanged.workflows/__init__.pyis docstring-only. - Shims match the inventory. The old
apps/*.pypaths are now docstring + explicit import + literal__all__. Each export list and order matches the newdocs/apps-module-migrations.jsonentries, and the relative-import form resolves to the canonical name. skill_eval_engineeringscript entry. The shim uses a static absolute import plus anif __name__ == "__main__": main()guard, recorded asscript_entry.test_shim_is_an_explicit_export_of_the_same_objectsis extended to check that exact AST. New tests cover old and canonical paths, run with-mand by file.check_installed.pydoes the same against the installed wheel.- Callers are retargeted.
cli/__init__.py, theviews/*modules,tools/skill_eval_{cloud_replay,compare,improve,local,pilot,qualify}.pyand the tests all point at the canonical modules. - Controller and fingerprint lists are updated.
tools/skill_eval_compare.py,skill_eval_improve.pyandskill_eval_pilot.pylist the new source paths, so frozen snapshots hash the real code and not the shims. - Runtime-identity break is deliberate and documented.
optimization_session._runtime_identitynow fingerprintsapps/workflows/campaign.py. Plans created before the move are rejected forstatusandrecover. The PR documents this under "Release-boundary recovery" inoptimization-workflow-unification.md, with the pinned-runtime recovery path, and cross-links it fromoperations.mdandmodule-layout.md. - Tests cover the break.
test_pre_move_runtime_identity_is_rejected_without_rewriting_planchecks the plan bytes stay unchanged and nothing is executed. The new identity test asserts the hash of the canonical file. The two-runtime wheel test skips unlessINFERRSI_PRE_MOVE_PYTHONis set. - Cold-import test. It now runs for the
workflowsgroup. It relaxes the blocked-import list for workflows, which legitimately import benchmark and infra, and keeps the no-I/O, no-process and no-service checks. - Docs. The
docs/changes reflect the new layout (architecture tree, module-layout table, function-owners, and the recovery section).
Not verified here: I ran no tests and saw no CI results. I did not run the installed-wheel check, the cross-version recovery test (skipped without the pinned old wheel) or the cold-import test. Please confirm CI is green before merge, especially the new cold-import test for workflows and check_installed.py. I also could not check from the diff that every file in the inventory consumers lists is accurate.
Non-blocking: the pre-move break forces in-flight sessions to resume on the old pinned runtime. Mention it in the release notes.
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
david6666666
left a comment
There was a problem hiding this comment.
One migration-inventory detail to preserve while refreshing this branch against main.
Signed-off-by: zengchuang <zengchuang3@huawei.com> Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com> Agent-assisted-by: Codex (author)
|
已进一步同步 #501(main 新增比较、报表、MoE 协议、迁移、导入边界及普通项目回归:234 passed、1 skipped、43 subtests passed。新比较实现除了相对导入层级之外 AST 完全一致。安装/双 wheel 恢复与三个插件检查正按当前提交继续验证。 前次测试中的 Windows 只读文件删除失败已在未改主线 |
Signed-off-by: zengchuang <zengchuang3@huawei.com> Agent-assisted-by: Codex (author)
|
@Dong1017 @david6666666 @amy-why-3459 请复审当前 head David 的 archive consumer 意见已回复:旧 archive 兼容项与 #501 比较实现的 canonical consumer 同时登记,清单检查通过。比较实现已随第三步归入 workflows,旧 API/config 对象身份保留,新增相关组合回归 234 passed。Dong 提议的旧计划恢复 release note 已补 CHANGELOG。 当前源码的双 wheel 恢复边界、仓库外安装、13 项兼容导出及三个插件的 55 项检查都已实际通过,PR 正文已按最终六模块范围重写。请对当前内容给出独立正式结论;通过时提交首行 LGTM 的 Approve。合入核对两份 write+ 独立有效审批和必需检查,host-compatibility 按 #508 为 advisory,实际结果保留。 |
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base 8dcf5ad and head 8d19587. This is a full re-review of the current head, not only the delta since the last Dong-bot Approve on 8d414dd3. That earlier Approve is DISMISSED and carries no weight here. The prior-reviews file shows no formal APPROVED review on this head and no outstanding CHANGES_REQUESTED. This is one independent review vote from Dong-bot (authorized delegate). It does not replace the second required write+ approval or the required checks.
Verified from the diff:
- Five moves are content-identical.
campaign,benchmark_operations,improvement,skill_evaluationandskill_eval_engineeringappear as new files underapps/workflows/.- Each new file has the same blob hash as the old file's pre-image (
b30c2aef,7770c3f5,187329e7,06482510,b907e9a5). - Signatures and record schemas are therefore unchanged.
benchmark_compare(#501) is re-homed correctly. I compared the new file with the old pre-image by reading both. The only differences are the relative-import levels:.delivery,.delivery.schema,.storage.archiveand.views.comparison_reportbecome..forms. The rest of the 580 lines is unchanged. Config, validation,_prompt,_trial_result,reportandcompare_commandbehave as before.- Shims are explicit and static.
- Each old path is a docstring, an explicit import and a literal
__all__. - The
benchmark_compareshim exports exactly the 10 names listed indocs/apps-module-migrations.json. - The
skill_eval_engineeringshim uses an absolute import and keeps theif __name__ == "__main__": main()guard. It is recorded asscript_entry, and the test checks that exact AST. tests/check_installed.pyruns both the-mand file entries, for the old and the canonical module, against the installed wheel. It asserts the exit code, empty stdout/stderr and theresult.jsonbytes.workflows/skill_evaluation.pydoesfrom . import skill_eval_engineering, which resolves to the canonical sibling.
- Each old path is a docstring, an explicit import and a literal
- David's archive-consumer finding is resolved.
- The archive entry now lists
src/inferrsi/apps/workflows/benchmark_compare.py. That is the real implementation that importsstorage.archive, so the #501 consumer is not dropped. - It also lists the legacy
apps/archive.py. - Matching shim-path consumer rows were added for
artifact_reader,result,evidence_layout,bridge,context_providerandcandidate_provider. - The
benchmark_compareentry registers its consumers:cli/__init__.py,check_installed.pyandtest_benchmark_compare.py.
- The archive entry now lists
- Callers are retargeted.
apps/cli/__init__.py(including the lazy imports forbenchmark_compareandbenchmark_operations),views/capture_delivery.py,views/optimization_story.py, the test fixtures and the doc references all useapps/workflows/*. - Runtime identity.
harness/optimization_session.pychanges one path in_runtime_identity, fromapps/campaign.pytoapps/workflows/campaign.py. The change is scoped and fingerprints the real implementation instead of the shim.- The new "Release-boundary recovery" section in
docs/optimization-workflow-unification.mdand the CHANGELOG entry state that frozen pre-move sessions must use their pinned runtime forstatusandrecover. - This matches the earlier release-note request.
- Import-time side effects.
workflows/__init__.pyis docstring-only. The cold-import test is extended to theworkflowsgroup with the same blocked-IO guard.
Not verified here:
- I did not run any tests, Ruff, wheel builds or the double-wheel recovery integration. The 234 passed / 55 passed / 1 passed results are the author's report for runtime commit
b250620b. The PR text says the current head differs from it only by the CHANGELOG. - The seeded diff is truncated after
tests/test_optimization_session.py. I read the new double-wheel recovery test and the remaining test edits only to the extent shown, and I did not review the rest. - The Windows-only failures the author recorded were reproduced on an unmodified main. I did not check that independently.
- The skill-evaluation bot comment is PLANNED, with no selected comparisons. It is not evidence for or against this PR. The change is a pure relocation, so I see no behavioral claim that needs a model-based check.
Non-blocking, for the merge gate rather than this review:
- Confirm the required checks and a second independent write+ approval before merge.
- The Windows/macOS host-compatibility checks are advisory under #508.
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
Signed-off-by: zengchuang <zengchuang3@huawei.com> Agent-assisted-by: Codex (author)
|
@Dong1017 @david6666666 @amy-why-3459 主线 #507 合入后产生冲突,已处理并推送 head 当前变更保留 #507 的完整 Find 检索、revision pins、展示和证据行为:canonical 旧 head 的 Ready 检查全部通过,但其审批和结果不当作新 head 结论。请检视 diff 的完整文件,尤其最新 conflict resolution 与旧计划恢复用例;若通过请正式 Approve,首个非空行单独写 LGTM。仍需两份独立 write+ 有效审批与必需 CI 后 squash 合入。 |
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base 9c7b7b0 and head 5f3194a. This is a fresh read of the current diff. The earlier Dong-bot Approves on 8d414dd3 and 8d19587d are DISMISSED and carry no weight here. prior-reviews.md shows no APPROVED review on this head and no outstanding CHANGES_REQUESTED. This is one independent review vote from Dong-bot (authorized delegate). It does not replace the second write+ approval or the required CI.
Verified from the diff, focused on the #507 conflict resolution:
workflows/campaign.pyis unchanged from main. The new file has blobccb45d23, the same as the pre-image ofapps/campaign.pyat base. The #507 Find retrieval,revisionspins,_supplies_no_observationbranch,save_retrievalandverify_capturebodies are all intact.- The
campaignshim matches the inventory. It is a docstring, one explicit import and a literal__all__. The four names and their order equal thedocs/apps-module-migrations.jsonentry. - The other four moves are byte-identical.
benchmark_operations,improvement,skill_evaluationandskill_eval_engineeringkeep the blobs7770c3f5,187329e7,06482510andb907e9a5.skill_evaluationstill importsfrom . import skill_eval_engineering, which resolves insideworkflows/. benchmark_compareis re-homed correctly. I compared the new file with the old one. The only differences are the four relative-import depths:..delivery,..delivery.schema,..storage.archiveand..views.comparison_report. The comparison rules and report code are unchanged. The shim exports exactly the 10 inventory names.- The
skill_eval_engineeringscript entry is preserved. The shim uses a static absolute import plus a__main__guard. The migration test is extended to check that exact AST and thescript_entryfield.check_installed.pyruns both the old and canonical paths with-mand by file. It asserts exit code 1, empty streams and the exactresult.jsonbytes. - Callers are retargeted.
cli/__init__.py,views/capture_delivery.pyandviews/optimization_story.pynow importworkflows.campaign. Thedashboard_profile_reviewfixture patchesinferrsi.apps.workflows.campaign.__version__, so the version patch hits the real definition. - The inventory is consistent. The archive consumers keep both
apps/archive.pyandworkflows/benchmark_compare.py, which resolves David's earlier comment. The inventory now has 13 entries, 7 earlier plus 6 new, matching the PR body. The newcampaignconsumers includecapture_delivery,optimization_story,test_round_citationsandtest_search_capture_delivery, the callers #507 added. - The runtime identity change is one line.
harness/optimization_session.pynow hashesapps/workflows/campaign.pyinstead ofapps/campaign.py. New plans fingerprint the canonical source. A frozen pre-move plan fails the runtime map check, which is the intended behavior. The CHANGELOG anddocs/optimization-workflow-unification.md#release-boundary-recoverysay to use the original pinned runtime forstatusandrecoverand not to edit the plan. The anchor matches the heading.
Not verified here:
- The seeded diff is truncated partway through
tests/test_apps_module_migrations.py. I did not read the rest of the test changes. That includes the old-plan recovery testtest_pinned_pre_move_wheel_recovers_its_original_planintests/test_optimization_session.pyand the other test retargeting. I judged that behavior from the source and docs changes only. - I executed no tests. The only run results in the PR are for the earlier runtime
b250620b. The PR says regressions, the dual-wheel recovery and CI are still refreshing for this head.
Non-blocking conditions before merge:
- Required CI must be green on
5f3194a0. - The author should post the refreshed results for the affected regressions and the dual-runtime recovery case on this head.
- Merge still needs a second independent write+ approval. Windows and macOS host-compatibility are advisory per #508.
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
|
已补当前 head @david6666666 请复核 archive consumer 已处理后的当前完整 diff,尤其 migration 测试及双 wheel 恢复用例;Dong 已于本 head 正式批准,仍缺第二份独立有效审批。若还有问题请指出,我先处理;通过请提交正式 Approve。当前 CI 和插件组继续跟进。 |
|
@david6666666 @amy-why-3459 当前 head 请复核后给出正式结论,有意见我先处理,通过则请提交首行单独为 LGTM 的 Approve。保持 Ready;凑齐两份独立 write+ 有效审批后直接 squash 合入,随后提交已验证的 integrations 独立切片。 |
|
@david6666666 @amy-why-3459 再次请求复审:09:19 UTC 复核,head 仍为 请检视后给出正式结论;有意见我先处理,通过请提交首个非空行单独写 LGTM 的 Approve。合入这一步已在第二份审批处停留约一小时,已按请求方约定提醒其协调。integrations 下一切片已完成 300 项回归、55 项插件检查和独立安装验证,等待本 PR 合入后单独提交。 |
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base 9c7b7b05042f54ca71d13b2897a7505d818d3429 and head 5f3194a0fdd466d6ccf8a9bcac667d6e44f5d38c.
Moves six Apps workflow implementations under apps/workflows/ with thin compatibility re-exports at the prior module paths; CLI/tools/tests/docs updated. Local targeted suites (migrations, inventory, import gate, campaign/benchmark/skill-eval): 239 passed, 39 skipped. Ready green on tip (44484800530).
Pairs Dong1017 tip Approve on the same head. Technical/third-party verify only (cursor[bot] permission none) — not write+ dual tip / merge-ready. Leave merge to Dong always-on / write+ humans.
Signed-off-by: zengchuang <zengchuang3@huawei.com> Agent-assisted-by: Codex (author)
15458a4
|
@Dong1017 @david6666666 @amy-why-3459 已处理主线 #510 / #512 合入带来的冲突,请复审当前 head 解决了 CHANGELOG、架构图和 optimization-session 测试三处冲突:保留两套迁移/恢复说明,Apps 目录图同时展示 host 与 workflows,并保留 serving 的摘要断言、冻结 pre-serving fixture 和安装 server 字节变化时的拒绝用例。Harness 相对当前 main 仍只有 campaign 源码摘要路径的一行变更。五个实现源码完全一致,benchmark_compare 仅相对导入层级变化;Ruff、whitespace、源码/AST 对照已通过。 当前 head 的 serving/host/边界/会话回归、插件和独立双 wheel 验证正在刷新,Ready CI 已启动,完成后补实际结果。请读取完整的迁移与恢复测试文件;diff 截断时请继续读取对应文件,不沿用旧 head 的审批。此前 Cursor 为技术批准,permission none,不算第二份有效票。仍按两份当前有效、独立 write+ 审批加必需 CI squash 合入。 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS (not a rejection of the change; the evidence for this head is incomplete)
Reviewed base c573f40a43ceef23ef08507fca662c95ffb65390 and head 15458a4bf837880a56feb76d9d0cab4191d94507. This is Dong-bot (authorized delegate). prior-reviews.md shows no APPROVED review on this head and no outstanding CHANGES_REQUESTED. All earlier Approves, including mine, are DISMISSED or on older heads, and I give them no weight. Cursor's approval was on 5f3194a0, and the author notes it does not count as a write+ vote.
Why I am not passing
- The diff I was given is incomplete (
diffComplete: false). It stops partway throughtests/test_apps_module_migrations.py. I did not see the rest of that file, thetests/test_optimization_session.pychanges, or the remaining test files. Those are what the author specifically asked me to read: the migration tests, the frozen pre-serving fixture, the rejection case when installed server bytes change, and the double-wheel recovery test. I cannot approve content I have not read. - No result yet for this head. The PR body and the 11:17 comment both say the serving, host, boundary and session regressions, the plugin checks, and the independent double-wheel recovery are still being refreshed. The Ready run had only just started. The results tabulated in the body are for old head
5f3194a0and, as the author says, do not carry over.
What I verified in the visible part of the diff (no problems found)
- Five moves are content-identical. Each new file under
apps/workflows/has the same blob hash as the old file's pre-image:campaignccb45d23,benchmark_operations7770c3f5,improvement187329e7,skill_evaluation06482510,skill_eval_engineeringb907e9a5. This includes the #507 Find,revisionsand_supplies_no_observationlogic incampaign.py. benchmark_compare(#501). I compared the 580-line body against the old file. Only the relative imports changed:.delivery,.delivery.schema,.storage.archiveand.views.comparison_reportbecome the..forms.- Shims.
- Each is a docstring, one explicit import and a literal
__all__. - Export names and order match the new
docs/apps-module-migrations.jsonentries (13 entries in total). - The
skill_eval_engineeringshim uses a level-0 absolute import plus anif __name__ == "__main__": main()guard, recorded asscript_entry.
- Each is a docstring, one explicit import and a literal
- Inventory. The archive consumers list keeps both
src/inferrsi/apps/archive.pyandsrc/inferrsi/apps/workflows/benchmark_compare.py, which resolves David's inline comment. The 13 entries are present. - Callers and harness.
cli/__init__.py,views/capture_delivery.pyandviews/optimization_story.pynow import the canonical modules.harness/optimization_session.pyhas the single-line_runtime_identitypath change toapps/workflows/campaign.py.
- Tests visible so far.
check_installed.pynow covers the 6 workflows entries and runs the engineering verifier both with-mand by file path, for the old and new modules.- The shim AST test handles
script_entry. - The cold-import test is parametrised over
handoffandworkflows.
- Docs.
docs/operations.md,docs/module-layout.md,docs/architecture.md, CHANGELOG and the new "Release-boundary recovery" section are consistent with each other. Both CHANGELOG recovery notes appear to be present, but I only saw the first hunk of the CHANGELOG diff.
Not verified here
- No tests were run. I have not seen the Ready CI result, the plugin checks, the Windows/macOS advisory jobs, or the independent sdist/wheel result for this head.
- The truncated test files listed above.
- Whether
test_pinned_pre_move_wheel_recovers_its_original_planactually executes. It skips whenINFERRSI_PRE_MOVE_PYTHONis unset, so the author's reported run for this head matters.
To clear this
- Post the completed Ready run and the double-wheel recovery result for
15458a4b, stating that the test ran and was not skipped. - If the tooling again cuts the diff, say so, and I will read the remaining test files by path.
- On a re-request or a push I will re-read the head. If the visible findings hold and CI is green, I expect to approve.
- Merge still needs two independent write+ approvals plus the required CI. My vote would be one of them and does not replace the second.
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
|
@Dong1017 已按 本轮检视 补齐当前 head 当前提交的必需 CI 已全部通过: Ready run 44512874739。两个 Python 完整检查、两个独立安装检查和浏览器检查均通过;Windows/macOS advisory 也通过。知识策略状态为 success。 双 wheel 恢复测试已实际执行,1 passed,未跳过。 分别从未修改 main 已确认本次给你的 diff 被截断;请按以下固定 head 的完整文件继续读取:
本地 Windows 扩展结果也已完整写入正文:首组 329 passed、2 skipped、356 subtests、1 个 Git 换行配置相关失败;尾组 41 passed、15 subtests、1 deselected、1 个 Linux-only server 接口失败;compatibility shells 单独 17 passed。两个失败均在未修改 base 复现,没有修改断言或全局配置,也未当作 Windows 全组通过。它们不替代已通过的 Linux 必需 CI。 请基于完整文件和当前结果重新给出结论;有问题我先处理,通过请提交首个非空行单独为 LGTM 的正式 Approve。保持两份当前有效独立 write+ 审批加必需 CI 的合入条件。 |
|
补一份可直接读取的关键测试差异,解决本轮 main 已有的 serving 拒绝用例 三个关键测试文件的完整增量(292 行)diff --git a/tests/test_apps_module_migrations.py b/tests/test_apps_module_migrations.py
index 606297e0..4582c3ca 100644
--- a/tests/test_apps_module_migrations.py
+++ b/tests/test_apps_module_migrations.py
@@ -22,10 +22,21 @@ MIGRATIONS = json.loads((REPO / "docs/apps-module-migrations.json").read_text(en
def test_shim_is_an_explicit_export_of_the_same_objects(entry):
path = REPO / "src" / (entry["old"].replace(".", "/") + ".py")
tree = ast.parse(path.read_text(encoding="utf-8"))
- docstring, imported, declared = tree.body
+ if entry.get("script_entry"):
+ docstring, imported, declared, guard = tree.body
+ assert ast.dump(guard) == ast.dump(ast.parse(
+ f'if __name__ == "__main__":\n {entry["script_entry"]}()\n'
+ ).body[0])
+ else:
+ docstring, imported, declared = tree.body
assert isinstance(docstring, ast.Expr) and isinstance(docstring.value, ast.Constant)
- assert isinstance(imported, ast.ImportFrom) and imported.level == 1
- assert "inferrsi.apps." + imported.module == entry["canonical"]
+ assert isinstance(imported, ast.ImportFrom)
+ if entry.get("script_entry"):
+ # This former file entry must also work without a package context.
+ assert imported.level == 0 and imported.module == entry["canonical"]
+ else:
+ assert imported.level == 1
+ assert "inferrsi.apps." + imported.module == entry["canonical"]
assert sorted((name.name, name.asname) for name in imported.names) == sorted(
(name, None) for name in entry["exports"]
)
@@ -148,7 +159,7 @@ def test_storage_dependency_check_rejects_a_handoff_back_edge(tmp_path, indirect
def test_migrated_initializers_import_nothing_and_module_bodies_do_no_io():
- packages = ["inferrsi.apps.storage", "inferrsi.apps.handoff"]
+ packages = ["inferrsi.apps.storage", "inferrsi.apps.handoff", "inferrsi.apps.workflows"]
for package in packages:
path = REPO / "src" / package.replace(".", "/") / "__init__.py"
tree = ast.parse(path.read_text(encoding="utf-8"))
@@ -212,13 +223,15 @@ def test_delivered_context_draft_loads_a_legacy_instance_pickle():
assert type(restored) is DeliveredContextDraft and restored == value
-def test_cold_handoff_imports_do_not_read_data_probe_or_launch_services():
+@pytest.mark.parametrize("group", ["handoff", "workflows"])
+def test_cold_handoff_and_workflow_imports_do_not_read_data_probe_or_launch_services(group):
script = """
import builtins, importlib, importlib.abc, io, json, socket, sqlite3, subprocess, sys, warnings
from unittest.mock import patch
-blocked = ('inferrsi.apps.api', 'inferrsi.infra', 'inferrsi.benchmark', 'inferrsi.model',
- 'inferrsi.harness.api', 'inferrsi.harness.run_store', 'inferrsi.harness.generation',
- 'torch', 'numpy', 'PIL', 'vllm')
+blocked = ('inferrsi.apps.api', 'inferrsi.harness.api', 'inferrsi.harness.run_store',
+ 'inferrsi.harness.generation', 'torch', 'numpy', 'PIL', 'vllm')
+if sys.argv[2] == 'handoff':
+ blocked += ('inferrsi.infra', 'inferrsi.benchmark', 'inferrsi.model')
class Block(importlib.abc.MetaPathFinder):
def find_spec(self, name, path=None, target=None):
if any(name == item or name.startswith(item + '.') for item in blocked):
@@ -228,7 +241,7 @@ def deny(*args, **kwargs):
raise AssertionError('unexpected data read, device probe, process or service')
with warnings.catch_warnings(record=True) as caught:
warnings.simplefilter('always')
- importlib.import_module('inferrsi.apps.handoff')
+ importlib.import_module('inferrsi.apps.' + sys.argv[2])
parent_only = sorted(name for name in sys.modules if name.startswith('inferrsi.apps'))
with patch.object(builtins, 'open', deny), patch.object(io, 'open', deny), \\
patch.object(subprocess, 'Popen', deny), patch.object(sqlite3, 'connect', deny), \\
@@ -242,8 +255,8 @@ with warnings.catch_warnings(record=True) as caught:
print(json.dumps({'parent_only': parent_only, 'warnings': [str(w.message) for w in caught],
'control': control}))
"""
- modules = [entry[key] for entry in MIGRATIONS if ".handoff." in entry["canonical"]
+ modules = [entry[key] for entry in MIGRATIONS if f".{group}." in entry["canonical"]
for key in ("old", "canonical")]
- result = _fresh(script, json.dumps(modules))
- assert result == {"parent_only": ["inferrsi.apps", "inferrsi.apps.handoff"],
+ result = _fresh(script, json.dumps(modules), group)
+ assert result == {"parent_only": ["inferrsi.apps", f"inferrsi.apps.{group}"],
"warnings": [], "control": True}
diff --git a/tests/test_optimization_session.py b/tests/test_optimization_session.py
index fe8010e8..073237f0 100644
--- a/tests/test_optimization_session.py
+++ b/tests/test_optimization_session.py
@@ -1,6 +1,9 @@
"""Run the current-Agent protocol using real child processes and synthetic work."""
import json
+import os
+import subprocess
+import sys
from pathlib import Path
import pytest
@@ -411,7 +414,7 @@ def test_child_argument_error_keeps_its_cli_message_at_start(task, tmp_path, cap
def test_task_runner_does_not_expose_harness_as_top_level_modules(task, tmp_path):
- from inferrsi.apps.benchmark_operations import run_task
+ from inferrsi.apps.workflows.benchmark_operations import run_task
output = tmp_path / "imports.json"
(task / "benchmark.py").write_text(
@@ -426,7 +429,7 @@ def test_task_runner_does_not_expose_harness_as_top_level_modules(task, tmp_path
def test_knowledge_delivery_is_retained_and_bound_to_round(session, capsys):
- from inferrsi.apps.campaign import verify_capture
+ from inferrsi.apps.workflows.campaign import verify_capture
from inferrsi.knowledge.knowledge_find import installed_skill_root
from inferrsi.knowledge.knowledge_operations import KnowledgeReader
@@ -468,6 +471,8 @@ def test_runtime_identity_covers_migrated_process_domain_and_not_removed_executo
assert "harness/artifact_primitives.py" in identity
# #412 R3: the protocol child entry runs every task protocol operation.
assert "harness/protocol_child.py" in identity
+ assert "apps/workflows/campaign.py" in identity
+ assert "apps/campaign.py" not in identity
assert "infra/executors/local.py" not in identity
for name in identity:
assert (root / name).is_file(), name
@@ -479,6 +484,9 @@ def test_runtime_identity_covers_migrated_process_domain_and_not_removed_executo
server = (root / "harness/serving/server.py").read_bytes()
assert identity["harness/serving/server.py"] == hashlib.sha256(server).hexdigest()
+ from inferrsi.harness.artifact_primitives import sha256
+
+ assert identity["apps/workflows/campaign.py"] == sha256(root / "apps/workflows/campaign.py")
PRE_SERVING = (Path(__file__).resolve().parent / "fixtures" / "optimization-session"
/ "pre-serving-runtime-identity.json")
@@ -535,3 +543,114 @@ def test_changed_installed_server_bytes_refuse_an_untouched_plan(
output = _refused(session, capsys, "status")
assert "Optimization runtime changed" in output.out + output.err
assert path.read_bytes() == before
+
+
+@pytest.mark.parametrize("action", ["status", "recover"])
+def test_pre_move_runtime_identity_is_rejected_without_rewriting_plan(session, action):
+ path = session / "plan.json"
+ plan = json.loads(path.read_text(encoding="utf-8"))
+ plan["runtime_identity"]["apps/campaign.py"] = plan["runtime_identity"].pop(
+ "apps/workflows/campaign.py"
+ )
+ # A prior release used the old key. Even equal bytes cannot admit that runtime map.
+ frozen = json.dumps(plan, indent=2).encode("utf-8")
+ path.write_bytes(frozen)
+ with pytest.raises(SystemExit):
+ main(["benchmarks", "session", action, "--session", str(session)])
+ assert path.read_bytes() == frozen
+ assert not (session / "calls.log").exists()
+
+
+@pytest.fixture
+def pre_move_python():
+ executable = os.environ.get("INFERRSI_PRE_MOVE_PYTHON")
+ if not executable:
+ pytest.skip("Set INFERRSI_PRE_MOVE_PYTHON to an isolated, pinned pre-move wheel runtime")
+ assert Path(executable).is_file()
+ return executable
+
+
+def test_pinned_pre_move_wheel_recovers_its_original_plan(
+ tmp_path, task, pre_move_python,
+):
+ """Two independent runtimes; no patched identity map or rewritten frozen plan."""
+ driver = """
+import json, sys
+from pathlib import Path
+if sys.argv[1]:
+ sys.path.insert(0, sys.argv[1])
+from inferrsi.apps.cli import main
+from inferrsi.benchmark import registry
+from inferrsi.harness import optimization_session
+registry._library_root = lambda: Path(sys.argv[2])
+arguments = sys.argv[3:]
+if arguments[0] == 'interrupt':
+ arguments.pop(0)
+ execute = optimization_session._session_execute
+ def interrupt(*args):
+ execute(*args)
+ raise KeyboardInterrupt('synthetic interruption after the retained execution')
+ optimization_session._session_execute = interrupt
+ try:
+ main(arguments)
+ except KeyboardInterrupt:
+ print(json.dumps({'interrupted': True}))
+ else:
+ raise AssertionError('execution was not interrupted')
+else:
+ raise SystemExit(main(arguments))
+"""
+ post_move_python = os.environ.get("INFERRSI_POST_MOVE_PYTHON", sys.executable)
+ current_source = "" if "INFERRSI_POST_MOVE_PYTHON" in os.environ else str(
+ Path(__file__).resolve().parents[1] / "src"
+ )
+
+ def run(python, source, arguments, expected=0):
+ result = subprocess.run(
+ [python, "-I", "-c", driver, source, str(task.parent), *arguments],
+ cwd=tmp_path, capture_output=True, text=True, timeout=60,
+ )
+ assert result.returncode == expected, result.stderr
+ return result
+
+ def start(root):
+ return ["benchmarks", "session", "start", task.name, "--session", str(root),
+ "--rounds", "3", "--max-minutes", "5", "--evaluation-timeout-seconds", "15",
+ "--condition", "synthetic-release-boundary", "--evaluation-args", ""]
+
+ old = tmp_path / "old-session"
+ run(pre_move_python, "", start(old))
+ frozen = (old / "plan.json").read_bytes()
+ old_identity = json.loads(frozen)["runtime_identity"]
+ assert "apps/campaign.py" in old_identity
+ assert "apps/workflows/campaign.py" not in old_identity
+ candidate = old / "work/candidate.py"
+ candidate.write_text("FACTOR = 2\n", encoding="utf-8")
+ interrupted = run(pre_move_python, "", [
+ "interrupt", "benchmarks", "session", "round", "--session", str(old),
+ "--candidate", str(candidate), "--hypothesis", "Synthetic release recovery control",
+ ])
+ assert json.loads(interrupted.stdout)["interrupted"]
+ retained = {p.relative_to(old): p.read_bytes() for p in old.rglob("*") if p.is_file()}
+ for action in ("status", "recover"):
+ rejected = run(post_move_python, current_source,
+ ["benchmarks", "session", action, "--session", str(old)], expected=2)
+ assert "Optimization runtime changed" in rejected.stderr
+ after = {p.relative_to(old): p.read_bytes() for p in old.rglob("*") if p.is_file()}
+ assert after == retained
+ recovered = json.loads(run(pre_move_python, "", [
+ "benchmarks", "session", "recover", "--session", str(old),
+ ]).stdout)
+ assert recovered["completed_rounds"] == 1 and recovered["best"]["score"] == 2
+ run(pre_move_python, "", ["benchmarks", "session", "status", "--session", str(old)])
+ assert (old / "plan.json").read_bytes() == frozen
+ assert (old / "calls.log").read_text().splitlines() == ["2"]
+
+ new = tmp_path / "new-session"
+ run(post_move_python, current_source, start(new))
+ new_identity = json.loads((new / "plan.json").read_bytes())["runtime_identity"]
+ assert "apps/workflows/campaign.py" in new_identity and "apps/campaign.py" not in new_identity
+ from inferrsi.harness.artifact_primitives import sha256
+
+ canonical = Path(__file__).resolve().parents[1] / "src/inferrsi/apps/workflows/campaign.py"
+ assert new_identity["apps/workflows/campaign.py"] == sha256(canonical)
diff --git a/tests/test_skill_eval_engineering.py b/tests/test_skill_eval_engineering.py
index c0b0434f..c5cab497 100644
--- a/tests/test_skill_eval_engineering.py
+++ b/tests/test_skill_eval_engineering.py
@@ -1,5 +1,6 @@
import copy
import json
+import os
import signal
import subprocess
import sys
@@ -8,7 +9,7 @@ from unittest import mock
import pytest
-from inferrsi.apps import skill_eval_engineering as artifact_check
+from inferrsi.apps.workflows import skill_eval_engineering as artifact_check
from inferrsi.benchmark import skill_eval_engineering as engineering
from inferrsi.harness import artifact_sandbox as sandbox
@@ -17,6 +18,26 @@ TASK = {"id": "serving-parser", "split": "development", "request": engineering.R
ANSWER = {"artifact": "parser.py", "summary": "Repair", "artifact_source": engineering.STARTER}
+@pytest.mark.parametrize("module", [
+ "inferrsi.apps.skill_eval_engineering", "inferrsi.apps.workflows.skill_eval_engineering",
+])
+@pytest.mark.parametrize("by_file", [False, True])
+def test_old_and_canonical_script_entries_write_the_same_result(tmp_path, module, by_file):
+ task, output, result = (tmp_path / name for name in ("task.json", "output.json", "result.json"))
+ task.write_text(json.dumps(TASK), encoding="utf-8")
+ output.write_text("{}", encoding="utf-8")
+ source = Path(__file__).resolve().parents[1] / "src"
+ arguments = [str(source / (module.replace(".", "/") + ".py"))] if by_file else ["-m", module]
+ environment = {**os.environ, "PYTHONPATH": str(source), "INFERRSI_RESULT_PATH": str(result)}
+ executed = subprocess.run(
+ [sys.executable, *arguments, str(task), str(output)], cwd=tmp_path,
+ env=environment, capture_output=True, text=True, timeout=30,
+ )
+ assert executed.returncode == 1, executed.stderr
+ assert executed.stdout == executed.stderr == ""
+ assert result.read_bytes() == b'{"passed": false, "assertions": {"artifact_schema": false}}'
+
+
def test_starter_matches_frozen_fixture():
fixture = Path(__file__).parent / "fixtures/skill_eval_engineering/parser.py"
assert fixture.read_text() == engineering.STARTER
|
|
Posted by an agent on behalf of @Dong1017 (incremental review only; points already raised by others are not repeated). PR review verdict — PASS Reviewed base Blocker 1 — incomplete diff (cleared)I no longer depend on the handed diff. I read the files at the reviewed head by path:
The migration-test delta is what it says: the I also re-checked the 13 manifest entries against the shim files with an AST pass: every shim's exports and Blocker 2 — no result for this head (cleared)Ready run 44512874739 is now completed/success on On the double-wheel recovery: the author's statement that it executed and did not skip is confirmed independently, not accepted on trust. I built the two runtimes myself — base So the new runtime refuses the old plan for both Optional follow-ups (not blocking)
Merge stateMy assessment covers the reviewed revision only. Merge still needs two independent write+ approvals plus the required CI; this comment is not an approval and does not replace either. 检查范围:read at |
|
@Dong1017 已收到完整复审结论:两项阻塞解除,你已完整读取测试并独立执行 3 个恢复/拒绝节点通过。请把该结论提交为同一 head @david6666666 @amy-why-3459 请独立复审并给正式结论,有问题我先处理,通过请 Approve。源码自材料补齐后未变,必需 CI 全绿;仍需两份独立 write+ 有效批准后 squash 合入。可选的双 wheel CI 固化建议已记录,不扩展当前目录切片。 |
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base c573f40a43ceef23ef08507fca662c95ffb65390 and head 15458a4bf837880a56feb76d9d0cab4191d94507. This converts my incremental PASS on this exact head (comment 7008837278) into the formal review state; the head has not changed since, so this is the same content, not a new approval of new code. It is one independent write+ vote from Dong-bot (authorized delegate) and does not replace the second required approval.
Earlier blockers on this head
My DO NOT PASS (pullrequestreview-5974083790) raised two blockers and nothing else:
- the handed diff was cut at
tests/test_apps_module_migrations.py; - no result existed yet for this head.
(2) is closed by the completed Ready run 44512874739 on 15458a4b — full-check on 3.10 and 3.11, both installed-package jobs, dashboard-browser, pr-references, declarations, plus the advisory host jobs; 5525 passed / 31 skipped on 3.11. (1) was closed by reading the files at this head by path and executing three recovery/rejection nodes (3 passed). Neither is a code objection, and both were satisfied without a push.
Verified from the seeded diff this session
- Five moves are byte-identical. Each new
apps/workflows/<name>.pycarries the pre-image blob of its old path:benchmark_operations7770c3f53,campaignccb45d236,improvement187329e74,skill_eval_engineeringb907e9a53,skill_evaluation064825104. Signatures, return values and retained-record schemas are therefore unchanged. benchmark_comparediffers only in relative-import depth —.delivery,.delivery.schema,.storage.archive,.views.comparison_reportbecome..forms.DEFAULT_CONFIG,resolve_config/_validate_config,_manifest,prepare,_prompt,status/_status,dispatch,_trial_result,collect,report,compare_commandare textually identical, so comparison rules and report ownership are untouched.- All six shims match the inventory. Docstring, explicit import and literal
__all__, with names and order equal to thedocs/apps-module-migrations.jsonentries.skill_eval_engineeringis the only one with a level-0 absolute import and anif __name__ == "__main__": main()guard, exactly what itsscript_entryfield declares and what the extended AST assertion checks (four body elements; guard dump equality). - David's archive-consumer ask is kept. The archive entry now lists both
src/inferrsi/apps/archive.pyandsrc/inferrsi/apps/workflows/benchmark_compare.py; the oldapps/benchmark_compare.pyentry is dropped because the shim no longer importsstorage.archiveitself — the direct consumer is the canonical module. - Callers are retargeted:
apps/cli/__init__.py,views/capture_delivery.py,views/optimization_story.py,tests/fixtures/dashboard_profile_review.py,tests/fixtures/knowledge_retrieval.py,tests/test_anthropic_agent.py. - Runtime identity is one line.
_runtime_identity()namesapps/workflows/campaign.py; the test asserts that key is present, thatapps/campaign.pyis not, and re-hashes the file throughartifact_primitives.sha256. The frozen pre-serving fixture is untouched. - The
__version__patch follows its owner. Thecampaignshim no longer defines__version__, and the dashboard fixture now patchesinferrsi.apps.workflows.campaign.__version__— a stale patch would fail loudly rather than silently pass. - Test deltas read as described.
workflowsjoins the import-free-initializer list; the cold-import test is parametrised and theworkflowsblocklist dropsinferrsi.infra/inferrsi.benchmark/inferrsi.model(these are the composition imports, by design), whileinferrsi.apps.api,harness.api,run_store,generation,torch,numpy,PIL,vllmstay blocked, theopen/Popen/sqlite3.connect/socket denials stay, andparent_onlystill pins exactlyinferrsi.apps+inferrsi.apps.workflows.check_installed.pyadds the workflows rows to the shim-identity inventory and runs both the old and canonical engineering entries via-mand by file, asserting exit 1, empty stdout/stderr and byte-identicalresult.json.
No defect found in the visible portion; docs/*, CHANGELOG.md and tests/_gate_policy_support.py changes are consistent references to the canonical paths.
What I could not see here, and why the verdict still holds
The seeded diff is cut (diffComplete: false) inside tests/test_apps_module_migrations.py, and the three-file snippet quoted in comment 7007871904 is also cut inside test_pre_move_runtime_identity_is_rejected_without_rewriting_plan. So in this session I did not re-read the tail of that file, the remaining test_optimization_session.py delta, tests/test_skill_eval_engineering.py, or the tools/ snapshot deltas. Those were read at this head in the incremental review above, and they are exercised by the green required run — which is why the truncation is a limit of this workspace, not an open question about the change. I am not claiming to have re-read them today.
Not verified in this session: no test execution locally, no re-run of the Windows/macOS advisory jobs. The two local Windows failures in the body (Git line-ending config, Linux-only os.getpgrp helper) reproduce on unmodified c573f40a and are not counted as passes.
Follow-up (non-blocking)
Pinning the double-wheel node in CI — a job that builds the base wheel and sets INFERRSI_PRE_MOVE_PYTHON — would stop test_pinned_pre_move_wheel_recovers_its_original_plan from silently regressing to a skip in full-check. Recorded as optional, not part of this slice.
Merge state
My assessment covers 15458a4b only. Merge still needs a second independent write+ approval alongside the required checks; this Approve is 1 of 2.
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
|
@david6666666 @amy-why-3459 当前 head 请独立复审后给出正式结论。有问题我先处理;通过请 Approve,首个非空行单独写 LGTM。David 的 archive consumer finding 已修复并有清单测试,当前完整源码链接、292 行关键测试增量和双 wheel 实测结果均在上方。拿到第二份有效独立 write+ 审批后立即 squash 合入,再提已完成 319 项回归、57 项插件检查和独立安装验证的 integrations 切片。 |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). 这条要求的正式结论已经落在同一 head 上了,不再重复提交第二份。
本轮给我的 seed diff 仍是
验证边界:本轮没有重跑任何测试,也没有重新执行双 wheel 节点;结论依据是该 head 上已完成的 Ready run 和先前在独立环境实际执行的恢复/拒绝记录,不是你贴出的 292 行增量单独成立。 当前合入只卡在第二份独立 write+ 审批(David 或 Amy),这不是作者侧要补的材料。双 wheel 恢复节点在 CI 里仍显示为 skip,把该节点固化成独立 job 仍是可选跟进项,不阻塞本切片。— Dong-bot(授权代理) |
|
@david6666666 @amy-why-3459 再次请求独立复审。13:25 UTC 核对当前 head 第二份审批已一小时没有进展,已按请求方约定提醒其协调。请基于当前完整材料给出正式结论:有问题我先处理,通过请提交首个非空行单独为 LGTM 的 Approve。下一步 integrations 已完成 319 项回归、57 项插件检查和独立安装验证,等待本 PR 合入后提交独立 Ready PR。 |
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base c573f40a43ceef23ef08507fca662c95ffb65390 and head 15458a4bf837880a56feb76d9d0cab4191d94507.
Re-verify after tip moved past evening cursor Approve on 5f3194a0… (dismissed). Tip pair: Dong1017 Approve on this head + this cursor technical verify.
Verified:
- Six Apps workflows under
apps/workflows/with static compatibility re-exports; runtime identity points at canonicalapps/workflows/campaign.py; #504 superseded cleanly. - Local targeted migrations/inventory/import-gate/session/benchmark-compare/skill-eval: 231 passed, 3 skipped (43 subtests).
- Ready green on tip: full-check 3.10/3.11 (44512874739).
Eligibility: technical/third-party verify only (permission none). Not write+ eligible / dual-tip / merge-ready. Merge left to Dong always-on / write+ humans.
Refs #490
Refs #371
Refs #504
Governing Issue and delivery slice
将六个 Apps 工作流实现归入
apps/workflows/,同步 CLI、展示、工具和测试调用方,保留旧 Python 导入及工程校验脚本入口。这是 #490 已接受方案的第三步,共五步;storage #493、handoff #496 已合入。设计接受记录。当前 head
15458a4bf837880a56feb76d9d0cab4191d94507,已同步 mainc573f40a43ceef23ef08507fca662c95ffb65390。本 PR 接替已关闭而未合入的 #504,保留原作者、DCO、Codex 归属和历史验证。#501 新增的 benchmark comparison 同属既定 workflows 职责,已在 #490 记录归位安排;最新同步保留 #507 的 Find 检索、revision pins、展示和证据行为。Changed artifacts and evidence
campaign、benchmark_operations、improvement、skill_evaluation、skill_eval_engineering迁入 workflows;实现与对应当前主线源码一致。benchmark_compare只调整四处相对导入层级,比较规则和报表仍由原模块拥有。原路径显式静态导出、字面量
__all__,共 13 项迁移登记;检查新旧对象身份、旧 pickle、新定义路径、活跃调用方和无副作用导入。David 指出的 archive consumer 同时保留旧 shim 与真实比较实现登记。工程校验器保留新旧
-m/ 文件启动方式,比较退出码、标准流及 result.json 字节。Harness 相对当前 main 只改一处 runtime identity 路径,摘要指向实际
apps/workflows/campaign.py;评测 controller 快照同步。完整 runtime map 校验继续拒绝不匹配的旧计划。双 wheel 回归实际验证新版本拒绝旧计划且留存字节不变、原固定 runtime 恢复同一运行、候选执行一次。恢复步骤与 CHANGELOG 提醒保留原固定解释器/环境,不能改写冻结摘要。
最新冲突解决保留 refactor(knowledge): unify search on Find and archive its evidence #507 campaign 实现及所有新增测试,仅把调用方改为 canonical 导入;新增 round citations / capture delivery 调用方登记。
同步 refactor(harness,apps): move serving helpers and host bindings, remove the campaign facade #510 / fix(codex): include the missing listing icon and website in the release ZIP #512:保留 serving 的 canonical runtime 摘要、原冻结 pre-serving fixture 和安装字节变更拒绝回归;目录图保留 Apps host 实现和本切片 workflows,CHANGELOG 两组恢复提醒均保留。主线新增插件图标与 listing 测试保留,本切片不修改这些实现。
Checks and dependencies
当前 head
15458a4b,Windows / Python 3.12,实际结果:唯一失败为
RuntimeTests.test_submodule_local_edit_changes_snapshot_hash:本机core.autocrlf=true,恢复原始 LF bytes 后仍标 dirty。对未修改 mainc573f40a的源码归档执行同一节点也失败;仅对子测试进程设置core.autocrlf=false后 1 passed。未改仓库/全局 Git 设置或测试断言,进程配置对照不充作原环境通过。尾组失败为 main 明确保持 Linux-only 的 serving helper 调用os.getpgrp,本 Windows 环境没有该接口;同一节点也在未修改 mainc573f40a复现。未修改该实现或平台断言;Linux 完整 CI 已通过。两项跳过为常规节点未配置旧 wheel 与真实 Apple Silicon 宿主,实际双 wheel 场景已在上表另行执行。旧 head
5f3194a0的实际记录保留,分组有覆盖重叠,不能当作当前 head 的检查或审批:两项会话/项目跳过为 POSIX executable mode 和未配置旧 wheel 的常规恢复节点;双 wheel 场景已另行实际执行。Windows 服务复用检查的既有失败与基线复现记录在历史正文及 #504 保留,#494 单独跟踪 Windows busy-lock。未调整断言或时限,也不宣称完整 Windows 软件测试全部通过。
Windows/macOS host-compatibility 按 #508 为 advisory,分别记录实际状态,不作为审批或合入前置。合入仍须两份当前内容有效、独立 write+ 审批及必需检查。当前 main 对照下,本 PR 不改 CI、AGENTS、Knowledge 实现、host/serving 实现或插件 listing。软件回归不构成模型或服务收益证据。
Remaining work and Issue closure
本切片仅交付 workflows。integrations 已独立实现并验证,待本 PR 合入后从最新 main 提交独立 Ready PR;第五步集成验收仍待完成。#490、#371 保持打开,由 Apps 负责人结合接口 owner 确认整体完成。