English
AI Reviews, PR Stacking & Auto-Merge
After a push triggers PR creation or sync, MergeResolutionWorkflow (MERGE_RESOLUTION) and landPull coordinate review, DAG ordering, and fast-forward landing:
- Sandboxed Deep Review & Learning:
engine: piagents run inside per-attemptAgentReviewerDOs (worker/src/review/agent-reviewer.ts), checking out up to 3,000 text files / 24 MB (worker/src/review/checkout.ts) under.orangeignorerules and site-admin budgets (review.pi_*). WithoutAGENT_REVIEWERbindings, reviews fall back to single-pass. Dismissed change requests or teach notes enqueueagent_lessonswhere the agent may edit onlyAGENT.mdbody andknowledge/**(worker/src/learn/validate.ts). - Git-First DAG Stacking:
worker/src/stack/lineage.tsdetects full branch containment in Git (decided_by = 'git') before calling AI models, enforces DAG acyclicity (worker/src/stack/acyclic.ts), and retargetsbase_refin D1 only (land_targetpreserved) without touching remote feature branches (worker/src/stack/reconcile.ts). - Single Verdict & Checkpoint Recovery:
reviewVerdict(worker/src/review/gate.ts) governs manual merge, MCP merge, andautoMergeRepository; guarded/security/data agents block blank dismissals (422) andLet Claude decidedelegations (ai_delegations).landPullCAS-advances the base branch whilelanding-recovery.tsandclose-recovery.tshandle branch cleanup,Fixes #Nclosure, notifications, and webhooks.