You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[gem-team] v1.152.0 Quality gates rework and add research - #6558
Risk tier:merge-risk:medium — New or substantially changed resource without privileged execution Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved review-gate, persistence, routing, and handoff defects can cause unbounded repair loops, repeat completed work on resume, or bypass required checks.
The new complexity_delta has no defined metric or calculation rule, yet gem-reviewer.agent.md:77 uses its sign as a pass criterion. Different simplifier runs can report incomparable values or omit the optional field, leaving the check without verifiable evidence. Define the metric and supporting evidence, and specify when the field must be emitted.
Preserve research revision requests and exploration mode
agents/gem-orchestrator.agent.md:86
This broadens the reviewer's revision_findings contract to every specialist, but gem-researcher has no such field and reports the required exploration mode in its revision request. Re-delegating without applying that mode can repeat the same insufficient scan, including standalone research routed at line 72. Preserve non-reviewer reasons and requested scope/budget changes, obtain authorization when needed, and update the next task's exploration_mode.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The DevOps approval gate can treat a dry-run or mitigation as sufficient resolution, allowing approval-required operations without explicit user authorization.
- Scope: classify workload, provider, environment, criteria. Apply relevant checks: health/graceful shutdown for services with health endpoints; production readiness/rollback/monitoring/approval for production; security/CVE for executable/security-sensitive workloads; mobile signing/store checks only for mobile release.
- Approval gate: ask user and stop if `requires_approval`, `devops_security_sensitive`, or production with `devops.approval_required_for`. Never proceed automatically.
- Approval gate: return `blocked` if `requires_approval` or `devops_security_sensitive` is true and cannot be resolved; or production with `devops.approval_required_for` and no approval recorded. Never proceed automatically.
- `continue_plan` or `extend`, block and request a valid `plan_id` matching `^[a-z0-9-]+$` for an existing plan rather than inferring, fuzzy-matching, or auto-loading it; then, for `continue_plan`, classify the intent as `resume` (Phase 3) or `revise_scope`/`revise_criteria`/`revise_waves` (Phase 2), asking once if ambiguous.
- Wave Scheduling: Execute waves in stable order. Max `orchestrator.max_concurrent_agents` (default: 2) parallel per wave; queue rest. Independent tasks within a wave run in parallel; dependent tasks run sequentially after dependencies complete. Retries count against cap.
- Task Delegation: Normalize outputs to receiver handoff via explicit field mappings. Route task outcomes and failures strictly per `<result_routing>`.
- Quality Gates:
- Eligibility: Require a post-wave quality gate only when the wave is neither read-only-only nor documentation-only AND its complexity is `MEDIUM`/`HIGH` or any high-risk signal applies to the wave or plan.
- Eligibility: Require a post-wave quality gate only when the wave is neither read-only-only nor documentation-only AND its complexity is `MEDIUM`/`HIGH` or any high-risk signal applies to the wave or plan.
- `review_mode`: `standard` (`MEDIUM`, no high-risk), `high` (`HIGH` or high-risk signals), `critic` (`architecture` | `breaking_change` | `cross_domain_impact` signals).
- Attempt accounting: Treat one gate cycle as one attempt, regardless of how many reviewers run in that cycle. Increment and persist the gate's `attempt_count` once at the start of that cycle, before any reviewer invocation. Each gate has at most two total attempts across failures and interruptions. After the first failed attempt, durably persist routed repair work and `repair_state: routed`, then run the second attempt. After the second failed attempt, persist `status: blocked` with the failure reason and findings and block the path; never invoke that gate a third time.
- Post-Wave Gate: For an eligible wave, run at most two parallel `gem-reviewer` tasks: `review_target: integration` [`review_scope: changed`] and `review_target: code` [`review_scope: changed`].
- Final Review (barrier before Phase 4 output): For eligible work, run at most two parallel `gem-reviewer` tasks: `review_target: integration` [`review_scope: full`] and `review_target: code` [`review_scope: full`]. Add a `review_target: plan` reviewer only for `HIGH` or critic-risk work, after the code/integration reviewers, and limit its scope to acceptance-criteria coverage. Never exceed `orchestrator.max_concurrent_agents`.
- State & Wave Transition: Persist each task's completion status and evidence immediately, then persist the wave's completed-task set, status, and `wave_eligibility` record. Maintain durable task, wave, and gate state. Before every gate invocation, durably persist the task and wave state and the complete running gate record, including the incremented attempt count, so failures or interruptions preserve completed task and wave records and resume from the persisted counter. If `orchestrator.git_commit_on_gate_pass: true` in config, commit wave output after its gate passes (`wave({n}): {objective}`). Report minimal status between waves; never pause for user approval.
- Learn: Record reusable learnings from blockers or high-value wins by auto-promoting `global_findings` with `confidence >= 0.8` to `repo` scope (unless `critic_signals` for `architecture`, `breaking_change`, or `cross_domain_impact` apply), persisting `confidence >= 0.95` items as terse facts in `AGENTS.md` or local/repo memory, and routing verified repeatable patterns to `gem-skill-creator` (`target_root: .apm/skills`).
mubaidr
changed the title
[gem-team] v1.150.0 Quality gates rework and add research
[gem-team] v1.151.0 Quality gates rework and add research
Nov 26, 2026
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The revised guidance exempts workers without health endpoints from graceful shutdown requirements, risking lost or duplicated in-flight work during deployments.
- Output: raw JSON per `output_format`. No markdown, no prose.
- Run all applicable checks. Store evidence only when evidence is required.
- On failure: return `failed` (with `failure_type: platform_specific | test_bug | new_failure`), `blocked` if runtime/simulator unavailable, or `needs_retry` only for transient flakiness; include evidence. No platform-specific error recovery.
- Cleanup: stop resources, close task-owned sims, clear artifacts.
mubaidr
changed the title
[gem-team] v1.151.0 Quality gates rework and add research
[gem-team] v1.152.0 Quality gates rework and add research
Nov 26, 2026
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Critical regressions route repairable review findings to terminal escalation and can allow approval-required DevOps operations to proceed without recorded user approval.
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
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.
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.mainbranch for this pull request.Description
review_mode(standard/high/critic) tied to risk signalsneeds_retry,needs_revision,needs_replan,blocked,flaky,platform_specific,test_bugoutcomesType of Contribution
Additional Notes
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.