Forge hardening: RPC parity, phased model evolution, and execution safeguards - #6
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR executes the Forge hardening plan in task-scoped commits (tests first, one commit per task).
Note:
risk-adaptive-loopwas removed from this branch per reviewer feedback and is no longer included.Task 1: Daemon RPC parity
forge_*methods through daemon JSON-RPC workspace dispatcher (src-tauri/src/bin/codex_monitor_daemon/rpc/workspace.rs).forge_list_bundled_templatesandforge_list_plans(src-tauri/src/bin/codex_monitor_daemon.rs).Task 2: AI review gate enforcement
src-tauri/src/shared/forge_execute_core.rs.ai-reviewnow requiresplans/<plan_id>/ai-review/<task_id>.jsonwith schemaforge-ai-review-v1, matchingtaskId, andfindings: [].test-first-loopphase/prompt contract to document the artifact.Task 3: Forge polling hardening
src/features/forge/components/Forge.tsx).src/features/forge/components/Forge.plans.test.tsx).Task 4: Execution loop safeguards
useForgeExecution(src/features/forge/hooks/useForgeExecution.ts):src/features/forge/hooks/useForgeExecution.test.ts).Task 5: Code quality fixes
.agents/skillswhen source content changes (src-tauri/src/shared/forge_templates_core.rs).file) (src/services/tauri.ts).src/services/tauri.test.ts).Validation
npm run typechecknpm run testcd src-tauri && cargo checkcd src-tauri && cargo test forge_execute_core --libcd src-tauri && cargo test forge_templates_core --libcd src-tauri && cargo test rpc_forge_list_ --bin codex_monitor_daemonPlan Artifact
docs/forge-hardening-execution-plan.json