feat: multi-agent foundation with recovery, quality gates, and migration compatibility#415
Conversation
|
Pre-PR comprehensive review gate has been completed, and this PR is intentionally kept in Draft because unresolved high-severity findings were identified.\n\nBlocking findings summary:\n1. Session ownership/isolation risk in attachment injection path () — caller-supplied is not fully ownership-guarded and missing sessions can be auto-created.\n2. Streaming multi-session compaction risk () — compaction path may target default session instead of requested session under concurrent sessions.\n3. Provider normalization compatibility risk () — global to normalization can rewrite providers into unsupported runtime names.\n4. Rollout/rollback control-plane vs execution-path drift risk () — rollout state management needs stronger enforcement in routing/execution path.\n\nI will address these blockers before marking this PR ready for review. |
|
Pre-PR comprehensive review gate has been completed, and this PR is intentionally kept in Draft because unresolved high-severity findings were identified. Blocking findings summary:
Next action: fix blockers, rerun comprehensive pre-PR review, then move PR out of Draft. |
|
High-severity blocker fixes are now landed on Fixed items:
Validation:
|
|
Post-fix update for blocking review items (corrected formatting):
This PR is now Ready for review. |
|
Process hardening update pushed in
Note: per local policy preference, codex longrun runtime scripts/logs remain local-only in ignored paths ( |
Summary
This PR delivers the multi-agent foundation requested for long-running, resumable Codex workflows and OpenClaw migration compatibility.
Main scope:
Why
OpenFang needs stronger multi-step orchestration and reliability foundations to support 24h+ autonomous runs with deterministic recovery, strict quality control, and safer migration from existing OpenClaw layouts.
Validation (comprehensive pre-PR review gate)
All commands below were re-run successfully before opening this PR:
cargo fmt --all -- --checkcargo test -p openfang-kernel workflow::tests::test_route_workflow_by_channel_task_type_and_risk -- --exactcargo test -p openfang-kernel workflow::tests::test_review_reject_and_return_to_planning -- --exactcargo test -p openfang-kernel --test session_resume_integration_test test_multi_session_e2e_session_summaries_stay_scoped -- --exactcargo test -p openfang-api --test api_integration_test test_workflow_shadow_run_compares_against_production_output -- --exactcargo test -p openfang-api --test api_integration_test test_workflow_rollout_controls_promote_and_rollback_with_checklist -- --exactcargo test -p openfang-runtime tool_runner::tests::test_approval_required_approved -- --exactcargo test -p openfang-migrate provider_alias_compatibilitycargo check -p openfang-apiRisks
Rollback