Repository navigation
Conversation
…ugin to v1.148.0
- **Unified workflow structure** — standardized phase-based workflow across all 13 agents with clearer boundaries, delegation rules, and quality gates
- **Simplified agent definitions** — removed redundant directives, consolidated Phase 0–4 workflows into consistent format with explicit routing logic
- **Improved handoff contracts** — stricter payload ordering, caching rules, and context injection for task delegation
- **Enhanced quality gates** — added post-wave and final plan-wide review gates with configurable `review_mode` (standard/high/critic) tied to risk signals
- **Clarified result routing** — explicit mappings for `needs_retry`, `needs_revision`, `needs_replan`, `blocked`, `flaky`, `platform_specific`, `test_bug` outcomes
- **Refined planner output** — strict acceptance criteria format ("Verify X happens when Y"), decision/assumption tracking, and anti-pattern guidance
- **Updated plugin version** — gem-team plugin bumped to v1.148.0 with synchronized agent definitions
🚦 Submission status: 👀 Ready for reviewRisk tier: Why this tier
Automated checks
Review
Commands
Updated for |
🔒 PR Risk Scan ResultsScanned 14 changed file(s).
✅ No matching risk patterns were detected in changed files.
|
🔍 Vally Lint Results
Summary
Full linter output |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved review-gate, persistence, routing, and handoff defects can cause unbounded repair loops, repeat completed work on resume, or bypass required checks.
13 open issues
Require a debugger recommendation field consumers use · New Separate unrelated pre-existing diagnostics from required fixes · New Allow task-required broader regression suites · New Assign plan IDs before all delegation paths · New Bound gate repair rounds and handle terminal verdicts · New Persist and restore complexity and risk signals on resume · New Persist task results before gating wave completion · New Route final-gate findings to owners and reschedule revised tasks · New Skip inapplicable reviews based on produced artifacts · New Honor explicit failure classifications before debugger recovery · New Use the planner payload's high_risk field consistently · New Make over-engineering review critic-only · New Align simplifier handoff fields and require a comparable delta · New
What changed in this PR
Updates Gem Team to v1.148.0, reworking quality gates and delegation contracts for its multi-agent development workflow.
Changes:
- Adds post-wave and final plan-wide reviews with risk-based review intensity and explicit result routing.
- Separates tool, execution, and output policies across agents and expands structured output contracts.
- Introduces the implementer’s SPEC/CODE/GATE/VERIFY loop and synchronizes release metadata.
| File | Description |
|---|---|
plugins/gem-team/plugin.json |
Bumps the plugin version to 1.148.0. |
agents/gem-skill-creator.agent.md |
Separates skill-creation tool, execution, and output policies. |
agents/gem-reviewer.agent.md |
Reorganizes target-specific checks and review-intensity rules. |
agents/gem-researcher.agent.md |
Adds stability and evidence fields to research outputs. |
agents/gem-planner.agent.md |
Consolidates planning constraints and handoff rules. |
agents/gem-orchestrator.agent.md |
Adds quality gates, recovery routing, and delegation contracts. |
agents/gem-mobile-tester.agent.md |
Reorganizes mobile-testing policies and evidence constraints. |
agents/gem-implementer.agent.md |
Defines the test-first SPEC/CODE/GATE/VERIFY workflow. |
agents/gem-documentation-writer.agent.md |
Separates documentation policies from workflow instructions. |
agents/gem-devops.agent.md |
Reorganizes operational and evidence-output policies. |
agents/gem-debugger.agent.md |
Adds an optional fix-recommendation output field. |
agents/gem-code-simplifier.agent.md |
Inlines refactoring guidance and adds a complexity-delta field. |
agents/gem-browser-tester.agent.md |
Reorganizes end-to-end testing and consumer-contract validation policies. |
.github/plugin/marketplace.json |
Synchronizes the Gem Team marketplace version to 1.148.0. |
Review effort: Max (adaptive)
| "status": "completed | failed | needs_revision", | ||
| "reason": "string", | ||
| "findings": [{ "root_cause": "string", "target_files": ["string"], "fix": "string" }], | ||
| "findings": [{ "root_cause": "string", "target_files": ["string"], "fix": "string", "fix_recommendations?": "string" }], |
|
|
||
| - SPEC: Write or update tests covering acceptance criteria and highest-risk boundaries. Do NOT run the test runner yet. | ||
| - CODE: Apply batched, minimal, surgical production edits required to pass. No unrelated refactoring or formatting churn. | ||
| - GATE: Run `get_errors` (or `get_problems` / LSP diagnostics) and resolve all reported issues in modified files before proceeding. |
| - SPEC: Write or update tests covering acceptance criteria and highest-risk boundaries. Do NOT run the test runner yet. | ||
| - CODE: Apply batched, minimal, surgical production edits required to pass. No unrelated refactoring or formatting churn. | ||
| - GATE: Run `get_errors` (or `get_problems` / LSP diagnostics) and resolve all reported issues in modified files before proceeding. | ||
| - VERIFY: Run tests scoped strictly to modified files. Run broader regression suites only if shared interfaces or public contracts changed. |
| - `research` -> assign `plan_id`, delegate `gem-researcher` -> Phase 4. | ||
| - `challenge` -> assign `plan_id`, delegate `gem-reviewer` (`review_mode: critic`) -> Phase 4. | ||
| - `continue_plan`/`extend` without exact valid `plan_id` -> block; request it. | ||
| - `continue_plan` / `extend`: Require exact valid `plan_id` matching `^[a-z0-9-]+$` and an existing plan. Never infer, fuzzy-match, or auto-load. If missing or invalid -> block; request it. |
| - Learn: evaluate on failure/retry/blocker; on success, only new failure modes, repeated blockers, or high-confidence facts. | ||
| - Wave Scheduling: Execute waves in stable order. Max `orchestrator.max_concurrent_agents` (default: 2) parallel; queue rest; retries count against cap. Cluster tasks back-to-back: sequential within cluster, parallel across (interleaving clusters expires shared prefix). | ||
| - Task Delegation: Normalize outputs to receiver handoff via explicit field mappings. Route task outcomes and failures strictly per `<result_routing>`. | ||
| - Quality Gates (apply when complexity is `MEDIUM`/`HIGH` or any high-risk signal is present): |
| - Post-Wave Gate (barrier before persisting state / next wave): Run `gem-reviewer` in parallel (`review_target: integration` [`review_scope: changed`] + `review_target: code` [`review_scope: changed`]). On fail: `gem-debugger` -> `gem-implementer` (test failures) or owning specialist (review findings); re-run gate until pass. | ||
| - Final Plan-Wide Gate (barrier before Phase 4 output): Run `gem-reviewer` in parallel (`review_target: integration` [`review_scope: full`], `review_target: code` [`review_scope: full`], and `review_target: plan` [`review_scope: full`, validating architectural coherence and criteria coverage]). On fail: `gem-debugger` -> `gem-implementer` (code/integration failures) or planner (plan findings); re-run gate until pass. |
| - `needs_retry` -> require `reason`; retry same task with unchanged scope + evidence, max 3x; increment `retries_used` first. | ||
| - `needs_revision` + `clarification_needed` -> ask user; no retry. | ||
| - `needs_revision` (no clarification) -> pass `revision_findings` to owning specialist; plan reviews -> `gem-planner`. | ||
| - `fixable` / `regression` / `new_failure` / execution `failed` -> `gem-debugger` -> `gem-implementer`. |
| - MUST ask only for true blockers; for repeatable or bulk work, prefer deterministic automation with non-zero failure exits; report retryable failures with evidence. | ||
| - MUST apply YAGNI/KISS: implement the minimum that meets the task; reuse before building; justify every extra layer, agent, task, or wave barrier. NEVER cut validation, error handling, security, or accessibility. | ||
| - MUST treat supplied `LOW`/`MEDIUM`/`HIGH` complexity as floor; promote only when plan evidence justifies; never downgrade. | ||
| - MUST treat Orchestrator handoff `high_risk_signals` and `critic_signals` as authoritative; do not re-evaluate. Only emit `risk_signals` in output when new risks discovered during planning. |
| - `code` | `integration` (read target as subject; inspect typed `handoff` before broad reads): | ||
| - `code`: check correctness, behavior, contracts, regressions, security, tests, maintainability. If `handoff.debugger_diagnosis` is present, consume as primary evidence: verify `root_cause` aligns with fix, `target_files` match changed files, and `fix_recommendations` are addressed (do not re-diagnose; log discrepancies as `critical_findings`). | ||
| - `integration`: check boundary contracts, cross-component behavior, state/migration risks, regressions, end-to-end criteria. | ||
| - Shared (`code` + `integration`): validate implementer's `regression_risk` estimate; run over-engineering pass (flag unrequested abstractions, avoidable deps, boilerplate, shorter/correct alternatives as warnings; include leaner alternative only when materially simpler and directly addresses finding). |
| - MUST treat baseline objective and baseline acceptance criteria as immutable when reviewing a plan. Report any change as a decision blocker. | ||
| - MUST run over-engineering pass for `code`/`integration` targets in `critic` mode only: flag unrequested abstractions, avoidable new deps, boilerplate, diffs that could be shorter/more correct, deliberate simplifications. Report as warnings. Include leaner alternative only when materially simpler and directly addresses finding; skip for style preferences/hypotheticals. Skip in `standard`/`high` modes. | ||
| - MUST validate fix against `handoff.debugger_diagnosis` when present: verify `root_cause` aligns with fix, `target_files` match changed files, `fix_recommendations` addressed. Do not re-diagnose; only validate fix against diagnosis. Record discrepancies as `critical_findings`. | ||
| - MUST verify `complexity_delta` < 0 and no behavior change when `handoff.changed_files` from simplifier present. |

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.